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; charset=ISO-8859-1; format=flow
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,
On 12/12/12 21:09, frank ernest wrote:
I want to open a file so I read the library useage because I could not
recall the propor useage.
I typed in to my script:
a = open (dupli, r)
and got an error stating that "dupli" is not deffined.
It sounds as if dupli is the name of your file however you
> I typed in to my script:
> a = open (dupli, r)
> and got an error stating that "dupli" is not deffined.
it needs the quotes around it. so try:
a = open ("dupli", "r")
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription option
I want to open a file so I read the library useage because I could not recall
the propor useage.
I typed in to my script:
a = open (dupli, r)
and got an error stating that "dupli" is not deffined.
I started the script from within to same directorie that the file "dupli" was
in. Perhaps it nee
On Wed, Dec 12, 2012 at 9:34 AM, wrote:
>
> ...
>
> OPM010 HUNT INGR FRI 16/11/12 01:00:00 QRTR
> HTGP PEG OVFL
> 0012 0 0
> 0022 0 0
> 0089 0 0
> 0379 0 0
> OPM010 HUNT INGR FRI 16/11/12 01:15:00 QRTR
> HTGP PEG OVFL
> 0012 0 0
> 0022 0 0
> 0089
On 13/12/12 01:34, lcon...@go2france.com wrote:
From an much larger, messy report file, I extracted these lines:
OPM010 HUNT INGR FRI 16/11/12 00:00:00 QRTR
HTGP PEG OVFL
0012 0 0
0022 0 0
0089 0 0
0379 0 0
OPM010 HUNT INGR FRI 16/11/12 00:15:00 QRTR
HTGP PEG O
From an much larger, messy report file, I extracted these lines:
OPM010 HUNT INGR FRI 16/11/12 00:00:00 QRTR
HTGP PEG OVFL
0012 0 0
0022 0 0
0089 0 0
0379 0 0
OPM010 HUNT INGR FRI 16/11/12 00:15:00 QRTR
HTGP PEG OVFL
0012 0 0
0022 0 0
0089 0 0
11 matches
Mail list logo