Aahz wrote:
monkeys paw wrote:
On 2/23/2010 3:17 PM, Tim Chase wrote:
Sure you don't need this to be 'wb' instead of 'w'?
'wb' does the trick. Thanks all!
import urllib2
a = open('adobe.pdf', 'wb')
i = 0
for line in
urllib2.urlopen('http://www.whirlpoolwaterheaters.com/downloads/6510413.pd
In article <2fwdnxofjat-whnwnz2dnuvz_rgdn...@insightbb.com>,
monkeys paw wrote:
>On 2/23/2010 3:17 PM, Tim Chase wrote:
>>
>> Sure you don't need this to be 'wb' instead of 'w'?
>
>'wb' does the trick. Thanks all!
>
>import urllib2
>a = open('adobe.pdf', 'wb')
>i = 0
>for line in
>urllib2.urlop
Am 24.02.10 00:08, schrieb monkeys paw:
On 2/23/2010 3:17 PM, Tim Chase wrote:
monkeys paw wrote:
I used the following code to download a PDF file, but the
file was invalid after running the code, is there problem
with the write operation?
import urllib2
url = 'http://www.whirlpoolwaterheaters
monkeys paw wrote:
NEW QUESTION if y'all are still reading:
Is there an integer increment operation in Python? I tried
using i++ but had to revert to 'i = i + 1'
Nope, but try i += 1.
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
>
>
> NEW QUESTION if y'all are still reading:
>
> Is there an integer increment operation in Python? I tried
> using i++ but had to revert to 'i = i + 1'
i+=1
--
http://mail.python.org/mailman/listinfo/python-list
On 2/23/2010 3:17 PM, Tim Chase wrote:
monkeys paw wrote:
I used the following code to download a PDF file, but the
file was invalid after running the code, is there problem
with the write operation?
import urllib2
url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
a = open('ado
PyPdf/pdfminer library will be of help
On Wed, Feb 24, 2010 at 1:47 AM, Tim Chase wrote:
> monkeys paw wrote:
>
>> I used the following code to download a PDF file, but the
>> file was invalid after running the code, is there problem
>> with the write operation?
>>
>> import urllib2
>> url = 'htt
On Feb 23, 2010, at 2:42 PM, monkeys paw wrote:
> I used the following code to download a PDF file, but the
> file was invalid after running the code, is there problem
> with the write operation?
>
> import urllib2
> url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
> a = open('
On Tue, Feb 23, 2010 at 2:42 PM, monkeys paw wrote:
> I used the following code to download a PDF file, but the
> file was invalid after running the code, is there problem
> with the write operation?
>
> import urllib2
> url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
> a = open
On Tue, Feb 23, 2010 at 2:42 PM, monkeys paw wrote:
> I used the following code to download a PDF file, but the
> file was invalid after running the code, is there problem
> with the write operation?
>
> import urllib2
> url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
> a = open
monkeys paw wrote:
I used the following code to download a PDF file, but the
file was invalid after running the code, is there problem
with the write operation?
import urllib2
url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
a = open('adobe.pdf', 'w')
Sure you don't need this
monkeys paw writes:
> I used the following code to download a PDF file, but the
> file was invalid after running the code, is there problem
> with the write operation?
>
> import urllib2
> url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
> a = open('adobe.pdf', 'w')
> for line i
I used the following code to download a PDF file, but the
file was invalid after running the code, is there problem
with the write operation?
import urllib2
url = 'http://www.whirlpoolwaterheaters.com/downloads/6510413.pdf'
a = open('adobe.pdf', 'w')
for line in urllib2.urlopen(url):
a.write(
13 matches
Mail list logo