Comments (13)
Yes, 50 limit is hard set due to the behavior of Google Drive.
It returns the first 50 files, and gdown can't know what's the rest.
To resolve this, probably we need to use browser emulator like Selenium to let the Javascript to load the rest of files.
(Loading more than 50 works in Incognito mode in a browser)
from gdown.
It has a limit of downloading 50 files from a folder link
from gdown.
It has a limit of downloading 50 files from a folder link
Maybe, although I already considered 50 files limitation by below command but It still do not work as my expectation. Do you have any idea to solve this problem?
// Folder with count of files more than 50
gdown <google_drive_folder_url> -O <location_for_download> --folder --remaining-ok
from gdown.
the --remaining-ok flag just allows you to download the first 50 files without giving an error I think. There is no way to download more than 50 files in a folder using gdown
from gdown.
Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?
from gdown.
Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?
The reason only able to download 50 files is that the gdown library, by default, uses the "cookie" method to access Google Drive files, and Google Drive has a limitation of 50 for direct downloads using cookies. You can use the Google Drive API along to download >50 files with the google-api-python-client library.
https://stackoverflow.com/a/76740603
from gdown.
Can we split the list file into several part, each part have maximum 50 files. By this ways we can download whole folder regardless how many file in folder. Why we can't do by this way?
The reason only able to download 50 files is that the gdown library, by default, uses the "cookie" method to access Google Drive files, and Google Drive has a limitation of 50 for direct downloads using cookies. You can use the Google Drive API along to download >50 files with the google-api-python-client library.
Once you make the python file, what do you do?
from gdown.
Using the below URL format, it seems to be possible to list more than 50 files without using cookies or the API. The output is in plain HTML. I'm not sure whether this method is officially supported or deprecated.
https://drive.google.com/embeddedfolderview?id=16bB1g_gq7KDiJX2j9H323LyTxXjbg1S2
The main limitation I can see is that it takes a while for the server to generate the list (it may show more entries when you reload the page), and the page can render well before the folder has been fully indexed. The folder linked above contains 5,000 files, and it took several minutes for them all to be listed correctly. I don't know if there is a maximum number of files that can be shown.
Note that the order shown on the page also doesn't match the order in which the files were indexed, i.e. "empty_file_999" was indexed before "empty_file_1000", but the latter is shown at the top of the list.
from gdown.
Related Issues (20)
- failed with "Too many users have viewed or downloaded" but it's a new folder HOT 4
- check_hostname requires server_hostname
- Gdown always stops after 1 hour of download HOT 3
- Can't download even with cookies in ~/cache/gdown/cookies.txt HOT 5
- "! gdown --id" ERROR HOT 5
- AttributeError: 'NoneType' object has no attribute 'groups' HOT 11
- Wrong Filename HOT 4
- pip install gdown won't work HOT 2
- Unsanitized filenames HOT 4
- Docs files interrupt downloads HOT 3
- Failed to retrieve file url HOT 1
- Gdown does not download when called asynchronously (EC2 Ruby on Rails) HOT 2
- gdown connection broken HOT 5
- pip install gdwon not woriking
- Too many request issue HOT 3
- unable to download the complete file HOT 3
- Error: HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1AbN9fCf9IexMxEKXLQY2KYBlb-IhSEea (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000018D7DC96250>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。')) HOT 6
- NameError: name 'cats' is not defined HOT 1
- HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1_PtHk2KNG_sYyFyT31hchz3R2ZO6tNwr (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe3dfe46490>: Failed to establish a new connection: [Errno 101] Network is unreachable')) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdown.