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
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
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
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
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
>>> 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,