[uf-discuss] hCard support checked into feedparser.py
Mark Pilgrim
pilgrim at gmail.com
Thu Jan 19 14:03:07 PST 2006
$ curl "http://cvs.sourceforge.net/viewcvs.py/*checkout*/feedparser/feedparser/feedparser.py?content-type=text%2Fplain"
> feedparser.py
$ curl http://www.crummy.com/software/BeautifulSoup/download/BeautifulSoup.py
> BeautifulSoup.py
$ python
>>> import feedparser
>>> d = feedparser.parse('http://cvs.sourceforge.net/viewcvs.py/*checkout*/feedparser/feedparser/tests/wellformed/mf_hcard/7-authors.xml?content-type=text%2Fplain')
>>> print d.entries[0].vcard
BEGIN:vCard
VERSION:3.0
FN:Frank Dawson
N:Dawson;Frank
ADR;TYPE=work,postal,parcel:;;6544 Battleford Drive;Raleigh;NC;27613-3502;U
.S.A.
TEL;TYPE=WORK,VOICE,MSG:+1-919-676-9515
TEL;TYPE=WORK,FAX:+1-919-676-9564
EMAIL;TYPE=internet,pref:Frank_Dawson at Lotus.com
EMAIL;TYPE=internet:fdawson at earthlink.net
ORG:Lotus Development Corporation
URL:http://home.earthlink.net/~fdawson
END:vCard
BEGIN:vCard
VERSION:3.0
FN:Tim Howes
N:Howes;Tim
ADR;TYPE=work:;;501 E. Middlefield Rd.;Mountain View;CA;94043;U.S.A.
TEL;TYPE=WORK,VOICE,MSG:+1-415-937-3419
TEL;TYPE=WORK,FAX:+1-415-528-4164
EMAIL;TYPE=internet:howes at netscape.com
ORG:Netscape Communications Corp.
END:vCard
--
Cheers,
-Mark
More information about the microformats-discuss
mailing list