Created
November 12, 2012 05:19
-
-
Save hadifarnoud/4057646 to your computer and use it in GitHub Desktop.
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
import lxml.html | |
from urllib import urlopen | |
h = lxml.html.parse(urlopen('http://webmeetguildford.co.uk/')) | |
for vcard in h.find_class("vcard"): | |
d = { | |
"link": h.find('a').get('href'), | |
"name": h.find('h3').text, | |
"twitter": h.find('a/p').text, | |
"avatar": h.find('img').get('src') | |
} | |
print d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment