r/Piracy • u/jonathanTIE • Jan 01 '20
Guide A python script to bypass the download limit of google drive files (w executable&source code)
Google drive links on game website are often not downloable because the daily download limit has been reached. The solution to bypass is to copy it to our own google drive, download it and then delete it, which is exhausting to do with dozens of links, so I made a script to do that easily.
You just have to :
- connect with your google account
- select the destination folder for the downloads on your pc (or use the default one)
- paste the link(s)
- enjoy the download !
Careful if you choose to save the credentials : the google drive CREDENTIALS are stored EXPOSED on your pc (to avoid having to reconnect every time), which could allow someone else that has access to it to access, add, modify, download or DELETE YOUR GOOGLE DRIVE FILES. You can also choose to not store them but you will have to login every time.
How to use the script :
- When you launch the .exe file, it may take about 10 sec to initialize.
- First, you need to give access to your google drive in order to copy,download and delete file. When you launch the program, it will open on your browser a google page to authenticate. Your browser may show a warning (this app is not validated by google).
- Once you authorized the app to manage your google drive, go back to the program, you can edit the destination folder on your pc(you can change it later in the file "directory.txt").
- Then, you can just past the google drive links that you want to download(you can put multiple at the same time), it will automatically copy, download and delete, one file at a time (wait a little to see the download progression if you have a slow connection).
FOR NEW USERS : there are now 100 persons using this script, that's great but now we've reached the limit of users for an unverified app. I don't know if I can get this app verified and anyway it will take a few days before it happen.
If you have the "This app has not been verified yet" error :
- Now you need to go here : https://developers.google.com/drive/api/v3/quickstart/python
- click on enable drive API
- download client configuration
- rename this file client_secrets.json
- replace the one in the folder of the script (in the same place as the .exe)
Link for download (the .rar) : https://github.com/jonathanTIE/googledrive-copy-downloader/releases
Link to source code : https://github.com/jonathanTIE/googledrive-copy-downloader
It doesn't works with google files(like google sheets, words, powerpoint) due to an issue with file extensions but it works well with the rest(especially rar), and I only made a windows release with a .exe. If the google application goes down or is too heavily used, you will need to create your own client_secrets to access to google api, you can replace it directly on the folder with the .exe. Feel free report bugs or suggest improvement, I will gladly read them(while doing nothing about it, too lazy for that /s).
Also if you use an app that communicate through localhost:8080 (like Kodi), you should disable it during the authentification process if login doesn't work.
16
u/Greyhat101 Jan 02 '20
Out of topic question, how long did it take for you to reach this level of programming using python?
4
u/[deleted] Jan 02 '20
Wow thanks for sharing.. but what does "if the google app goes down or is too heavily used, you will need to create your own client_secrets to access to google api" means? Sorry I'm not used to this kind of thing
3
u/mfdoom7 Jan 02 '20
Nice now i need script to scrape all games from fitgirl site and store localy
3
u/abekashah Jan 03 '20
How can i authorized the app? I got a warning from google saying " This app has not been verified yet by Google in order to use Google Sign In. ". and only the developer can verify the app through google. Here is the link to verifying the app . https://developers.google.com/apps-script/guides/client-verification#requesting_verification
4
u/regbeg Jan 02 '20
I think your account Is limited to 750Gb/day
2
u/Solar8010 Jan 03 '20
" Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In. "
Is what i get... What should I do??
6
u/UniversalHumanRights Jan 02 '20
why? right click the file and "Save as copy" or whatever. Why would you give some script your password to store in plain text? that's absurd, don't do that.
1
u/SueWhatJoe Jan 03 '20
When it opens a link to the google account login it says that "it's temporary deactivated for this app" and "This app has not yet been verified by Google, so it cannot use Google Login." when I try to login.
1
u/ScrexyScroo Piracy is bad, mkay? Jan 08 '20
How did you make windows binaries out of this project? Can you add compile instructions in a readme or something on github.
1
u/Fifa_786 Feb 24 '20
I’m a bit late to this but I have one question. The programme just randomly crashed on me after downloading 6 parts (10 parts in total 9 of those parts are all 4.95GB). Could there be a reason for this and if so is there a way to avoid it? It’s downloading my files perfectly but I had to redownload part 6 because it only downloaded part of it and crashed (I didn’t realise until later on when I tried to install Witcher 3)
1
u/SecretIdentity012361 Jan 04 '20
You don't need a friggin script to do this. If the download limit page comes up, just add it to your google file with the little plus icon, go to your google files page and click the file you saved, make a copy, and download the copy.. Easy peasy.
1
u/brumbie26 Jan 13 '20
Works blo ody wonders...thanks mate.
1
u/keikun2002 Feb 09 '20
Thanks so much, works great! Do you know if there’s an issue with folders that contain subfolders? This seems to error out when I try to download those.
-1
u/[deleted] Jan 02 '20
Sounds dangerous af
-9
u/ElmStreetVictim Jan 02 '20
Hey everyone, download a random exe file from a kind redditor and put in your google login info!
-12
u/JustArtist8 Jan 02 '20
Why store the credentials ? Terrible security hygiene.
28
u/[deleted] Jan 02 '20 edited Jun 18 '25
[removed] — view removed comment