simple Question about using BeautifulSoup

Grzegorz Staniak gstaniak at
Wed Aug 20 16:39:36 CEST 2008

On 2008-08-20, Alexnb <alexnbryan at> wroted:

> Okay, I have used BeautifulSoup a lot lately, but I am wondering, how do you
> open a local html file?
> Usually I do something like this for a url
> soup = BeautifulSoup(urllib.urlopen('')
> but the file extension doesn't work. So how do I open one?

Have you tried the local file URL, like "file:///home/user/file.html"?

Grzegorz Staniak <gstaniak _at_ wp [dot] pl>

More information about the Python-list mailing list