Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Whats my python program's problem
Post: RE: Whats my python program's problem

I got it.I just searched throgh the external libray and saw the module name is changed to urllib and its not urllib.request. (Mar-13-2017, 01:55 PM)zivoni Wrote: As I wrote earlier, python2.7 does ...
arman General Coding Help 13 8,881 Mar-13-2017, 02:15 PM
    Thread: Whats my python program's problem
Post: RE: Whats my python program's problem

(Mar-12-2017, 09:44 PM)zivoni Wrote: url of image passed to your download_web_image function should be enclosed in quotes:oh yes that was the problem. But this is another error . Error:C:\Python27\p...
arman General Coding Help 13 8,881 Mar-13-2017, 01:43 PM
    Thread: Whats my python program's problem
Post: RE: Whats my python program's problem

import random import urllib.request def download_web_image(url):     name=random.randrange(1,1000)     fullname=str(name)+".jpg"     urllib.request.urlretrieve(url,fullname) download_web_image(http:/...
arman General Coding Help 13 8,881 Mar-12-2017, 09:31 PM
    Thread: Whats my python program's problem
Post: RE: Whats my python program's problem

import random import urllib.request def download_web_image(url):    name=random.randrange(1,1000)    fullname=str(name)+".jpg"    urllib.request.urlretrieve(url,fullname) download_web_image(http://www...
arman General Coding Help 13 8,881 Mar-12-2017, 09:27 PM
    Thread: Whats my python program's problem
Post: Whats my python program's problem

I was watching the Buckys tutorial about how to download the image from internet and i copied all he said but my program did not work. Im new to this forum.How can i send an image from my pc?
arman General Coding Help 13 8,881 Mar-12-2017, 09:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020