The entire contents of the server is browsable at, so you can look in the various directories and find the correct URLs to the files you need. I don’t know what that is, but it’s nothing you want or can use. ![]() You can view it in your browser to confirm that: For example, the actual URL you posted (if I translate it into a public URL) is just a log file of some process, it’s not any kind of useful code at all. If you’re getting HTML documents, then you’re likely just not retrieving the correct files. (The b in the second argument to open(., "wb") does that.) Writing the data to disk in binary mode is important, when dealing with binary content like. > r = requests.request(url='', method='GET') zip file from that service using Python: > import requests ![]() I’m assuming this is proxying the data from (That doesn’t require authentication, but maybe your proxy does.) regardless, you need to show your entire code if you want us to find the problem, it isn’t likely to be in the couple of lines you posted.īut, for example, here’s how I successfully retrieved a working, valid.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |