Created
September 27, 2015 23:00
-
-
Save matiasinsaurralde/4f6a74c96f0687e5e810 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from pyquery import PyQuery as pq | |
url = 'https://4.ipinfo.io/AS27866' | |
d = pq( url=url ) | |
for td in d( 'td' ): | |
td = d( td ) | |
print "soy un td: ", td.text() | |
# condicion que se podria usar como filtro | |
if '/' in td.text(): | |
print "soy un td importante: ", td.text() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment