Skip to content

Instantly share code, notes, and snippets.

@dingyaguang117
Created August 21, 2018 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingyaguang117/2d88b1e805f53dd7aa4291f51488bc96 to your computer and use it in GitHub Desktop.
Save dingyaguang117/2d88b1e805f53dd7aa4291f51488bc96 to your computer and use it in GitHub Desktop.
1. 获取后面的节点
//div[@class="drop-features"]/following-sibling::p/text()
2. lxml 节点tostring
from lxml import etree
etree.tostring(Element)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment