Re: [Tutor] reading web page with BeautifulSoup

2012-12-13 Thread Alan Gauld
On 13/12/12 01:47, Ed Owens wrote: >>> from urllib2 import urlopen >>> page = urlopen('w1.weather.gov/obhistory/KDCA.html') Traceback (most recent call last): ValueError: unknown url type: w1.weather.gov/obhistory/KDCA.html copy the url from the error message into my browser and get the page

[Tutor] reading web page with BeautifulSoup

2012-12-12 Thread Don Jennings
On Dec 12, 2012, at 8:54 PM, tutor-requ...@python.org wrote: > Date: Wed, 12 Dec 2012 20:47:58 -0500 > From: Ed Owens > To: tutor@python.org > Subject: [Tutor] reading web page with BeautifulSoup > Message-ID: <50c933ce.5010...@gmx.com> > Content-Type: text/plain; ch

Re: [Tutor] reading web page with BeautifulSoup

2012-12-12 Thread Ed Owens
On 12/12/12 9:03 PM, Dave Angel wrote: On 12/12/2012 08:47 PM, Ed Owens wrote: from urllib2 import urlopen page = urlopen('w1.weather.gov/obhistory/KDCA.html') Traceback (most recent call last): File "", line 1, in File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pytho

Re: [Tutor] reading web page with BeautifulSoup

2012-12-12 Thread Dave Angel
On 12/12/2012 08:47 PM, Ed Owens wrote: > >>> from urllib2 import urlopen > >>> page = urlopen('w1.weather.gov/obhistory/KDCA.html') > Traceback (most recent call last): > File "", line 1, in > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", > line 1

Re: [Tutor] reading web page with BeautifulSoup

2012-12-12 Thread शंतनू
On 13/12/12 12:47 PM, Ed Owens wrote: > >>> from urllib2 import urlopen > >>> page = urlopen('w1.weather.gov/obhistory/KDCA.html') > Traceback (most recent call last): > File "", line 1, in > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", > line 12

[Tutor] reading web page with BeautifulSoup

2012-12-12 Thread Ed Owens
>>> from urllib2 import urlopen >>> page = urlopen('w1.weather.gov/obhistory/KDCA.html') Traceback (most recent call last): File "", line 1, in File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data,