Created
April 22, 2013 15:20
-
-
Save yannisxu/5435881 to your computer and use it in GitHub Desktop.
pyquery each用法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
texts = [] | |
lis = pq('li') | |
def get(i,e): | |
e = pq(e) | |
texts.append(e.text()) | |
lis.each(get) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment