+ 1

python request module

Hi. I want to write an app which gets the raw of some files from github via request module. Now I want to know Does it download the file every time I run the app? (I don't want the file. I just need its content. E.g https://raw.githubusercontent.com/Ramin-RX7/DramaX/master/other.py ) My files are big (more than 50MB) and I dont like to spend internet for it. So if my file is 50MB, do I need 50MB internet for each time I run my app?

6th Jun 2020, 2:03 PM
Ramin.RX7
Ramin.RX7 - avatar
5 Respostas
+ 4
Now, what do you mean by "I don't want the file, I just need its content?" How are you supposed to "get the content" without downloading it?
6th Jun 2020, 2:08 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
@Kuba Siekierzyński I mean I dont want to make a file like: MyFile.txt I just need that file as a string.
6th Jun 2020, 2:10 PM
Ramin.RX7
Ramin.RX7 - avatar
0
Ramin.RX7 Well, sure, but in order to read it, you have to draw the data from it, right? Long story short: yes, you will have to download 50MB each time, unless you download it once and make an if statement, so that if the file is present, do not download it again.
6th Jun 2020, 2:34 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Mirielle and Kuba Siekierzyński I think you didn't get it I'm saying I dont want to download and save the file. Just I need page source as a string. And from your words I found you mean I have to download it every time I run my app right?
6th Jun 2020, 3:57 PM
Ramin.RX7
Ramin.RX7 - avatar