Skip to content

Instantly share code, notes, and snippets.

@hadifarnoud
Created November 12, 2012 05:19
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 hadifarnoud/4057646 to your computer and use it in GitHub Desktop.
Save hadifarnoud/4057646 to your computer and use it in GitHub Desktop.
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