ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
Re: [Tutor] Parsing html user HTMLParser
by Kent Johnson other posts by this author
Apr 20 2006 4:56AM messages near this date
Re: [Tutor] Parsing html user HTMLParser | [Tutor] Use iterator to refer to an object's attribute?
á??á?·á?á??á??á??á?·á??á?? wrote:>  Hi folks,> > I need help here, I'm struggling with html 
parsing method, up until now>  I can only put and html file as instance. I have no experience
 with>  this, I want to read the childs inside this document and modify the> data. What can I
 do if I start from here?>  >> from HTMLParser import HTMLParser>>>> p = HTMLParser()>> s = o
pen('/home/virak/Documents/peace/test.html').read()> > p.feed(s)>>>> print p>>>> p.close()
Here is an example that might be useful, though the usage is not too clear...http://aspn.act
ivestate.com/ASPN/Cookbook/Python/Recipe/286269
Kent
_______________________________________________Tutor maillist  -  Tutor@python.orghttp://mai
l.python.org/mailman/listinfo/tutor
Thread:
?????????
Danny Yoo
Kent Johnson

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved