singletoned at gmail.com
Wed Oct 5 14:02:40 CEST 2005
You're like some kind of god!
That's exactly what I need.
On 05/10/05, Kent Johnson <kent37 at tds.net> wrote:
> Ed Singleton wrote:
> > I want to dump a html file into a python object. Each nested tag
> > would be a sub-object, attributes would be properties. So that I can
> > page.
> I don't know of a way to run Python from within a web page. But if you want to fetch an HTML page from a server and work with it (for example a web-scraping app), many people use BeautifulSoup for this. If you have well-formed HTML or XHTML you can use an XML parser as well but BS has the advantage of coping with badly-formed HTML.
> Tutor maillist - Tutor at python.org
More information about the Tutor