Skip to content

Instantly share code, notes, and snippets.

@alexsunxl
Last active December 13, 2016 03:39
Show Gist options
  • Save alexsunxl/666a99af4aa37337fd1bf1b0de093f7c to your computer and use it in GitHub Desktop.
Save alexsunxl/666a99af4aa37337fd1bf1b0de093f7c to your computer and use it in GitHub Desktop.
from pyquery import PyQuery
doc = PyQuery('<div><span>toto</span><span>tata</span></div>')
print doc.text() # => toto tata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment