Linked Questions

7 votes
3 answers
11k views

How to download file using Python? [duplicate]

I'm completely new to Python, I want to download a file by sending a request to the server. When I type it into my browser, I see the CSV file is downloaded, but when I try sending a get request it ...
Alex's user avatar
  • 1,984
2 votes
2 answers
11k views

How can I download a file from a user-provided URL in Flask? [duplicate]

I want to get a URL from the user in my Flask application, then download and save that URL to disk.
MonadMania's user avatar
0 votes
1 answer
2k views

Downloading file in python (using urllib and shutil) [duplicate]

I was searching for python script to download files and I found 2 ways of downloading with urllib.request.urlopen. One of them use shutil module and the other one not. Now I want to know what is the ...
Ramin-RX7's user avatar
  • 139
-1 votes
1 answer
2k views

How do I download a direct download link and save it to disk in Python on Windows? [duplicate]

I have a direct download link address to a compressed zip file that contains an installer of program that I would like to install. That being said I will only ask one question at a time... How would ...
Chris Stone's user avatar
0 votes
1 answer
1k views

Python open: Invalid argument error [duplicate]

I have the following two xml links, each of which I want to use as the file parameter to open: table1 = 'https://www.sec.gov/Archives/edgar/data/1103804/000110380417000040/xslForm13F_X01/...
Brad Solomon's user avatar
  • 40.2k
-1 votes
2 answers
1k views

How do download a file from url in Python [duplicate]

I want to download a file in Python shell like files get downloaded into browser. Yes, I know there are multiple ways like curl, wget, url retrieve etc. but here in all the cases, file name is not the ...
jugadengg's user avatar
-1 votes
1 answer
575 views

cURL method in Python for JSON feed [duplicate]

While building a flask website, I'm using an external JSON feed to feed the local mongoDB with content. This feed is parsed and fed while repurposing keys from the JSON to keys in Mongo. One of the ...
Colm's user avatar
  • 21
0 votes
1 answer
419 views

Download file onto virtual server using python [duplicate]

I use a python script to download a file from a website periodically. I want to move this process to my virtual server. How do I do this? This is the code I use import webbrowser url = 'https://www....
absk's user avatar
  • 53
0 votes
1 answer
238 views

How to read urls using "With open()"? [duplicate]

I was doing this and worked perfectly fine: def b64_image(filename): with open("static/img/"+filename, 'rb') as f: b64 = base64.b64encode(f.read()) return b64.decode('utf-8') But ...
user avatar
0 votes
0 answers
111 views

how to download a .csv file from a web to computer using python [duplicate]

I'm a stock market trader and at the end of every trading session I have some files to download from stock exchange website, how can I write a code in python or in any other language to download a ...
Parth Master's user avatar
-3 votes
1 answer
92 views

How to download a image from the Internet through its URL? [duplicate]

I´m interested in downloading a .jpg file from the Internet. I would like to know a function or anyway that lets me to download files from the python console. So I suppose the way would be more or ...
Peterstone's user avatar
  • 7,349
1 vote
0 answers
42 views

How to download file by using python? [duplicate]

I have link https://rarbg2021.org/download.php?id=lqm5bu9&h=a6b&f=MP3-daily-2021-July-21-Bass-[rarbg.to].torrent Could you, please, tell me How can I download the torrent file by using python? ...
An Ri's user avatar
  • 466
1056 votes
11 answers
496k views

What are the differences between the urllib, urllib2, urllib3 and requests module?

In Python, what are the differences between the urllib, urllib2, urllib3 and requests modules? Why are there three? They seem to do the same thing...
Paul Biggar's user avatar
  • 28.4k
457 votes
9 answers
444k views

Download file from web in Python 3

I am creating a program that will download a .jar (java) file from a web server, by reading the URL that is specified in the .jad file of the same game/application. I'm using Python 3.2.1 I've ...
Bo Milanovich's user avatar
208 votes
18 answers
354k views

How to save an image locally using Python whose URL address I already know?

I know the URL of an image on Internet. e.g. http://www.digimouth.com/news/media/2011/09/google-logo.jpg, which contains the logo of Google. Now, how can I download this image using Python without ...
Pankaj Vatsa's user avatar
  • 2,649

15 30 50 per page
1
2 3 4 5
8