simple Question about using BeautifulSoup

Alexnb alexnbryan at gmail.com
Wed Aug 20 10:33:32 EDT 2008


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('http://www.website.com')

but the file extension doesn't work. So how do I open one?
-- 
View this message in context: http://www.nabble.com/simple-Question-about-using-BeautifulSoup-tp19069980p19069980.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list