Comments (15)
I've updated it, they really really made a mess of it. It was like 18 steps, now it's 24.. Or.. I created a new 'workaround' for this with the Quickstart option (only 6 steps, no additional input needed).
https://github.com/KoalaBear84/OpenDirectoryDownloader/blob/master/README.md
Please check it out and let me know!
from opendirectorydownloader.
Hmm.. You are right, looks like I broke it, or Google did. I'll investigate!
from opendirectorydownloader.
No, my OpenDirectoryDownloader.GoogleDrive.json
file was empty.
Looks like you have another issue, that this file does not contain this:
{
"installed": {
... Your values
}
}
Could you check that out?
from opendirectorydownloader.
My OpenDirectoryDownloader.GoogleDrive.json
file contain this :
{
"type": "service_account",
"project_id": "XXXXXXXXXXXXXXXXXXX",
"private_key_id": "XXXXXXXXXXXXXXXXXXXXX",
"private_key": "-----BEGIN PRIVATE KEY-----\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n-----END PRIVATE KEY-----\n",
"client_email": "XXXXXXXXXXXXXXXXXXX",
"client_id": "XXXXXXXXXXXXXXXXXXX",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/serviceaccountXXXXXXXXXXXXXXXXXXX"
}
Indeed I don't have the "installed" line, but I have followed the instructions to generate this json, so I don't know why that value isn't in my file.
from opendirectorydownloader.
Wow, why doesn't Github notified me of your answer.
Hmm, that's strange. I guess Google has updated the generated "credentials" file structure..
Could you try the following format (fill in your values at the XXXX's).
{
"installed": {
"client_id": "XXXXXXXXXXXXXXXXXX",
"project_id": "XXXXXXXXXXXXXXXXXX",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "XXXXXXXXXXXXXXXXXX",
"redirect_uris": [ "urn:ietf:wg:oauth:2.0:oob", "http://localhost" ]
}
}
I'll try later to generate a new file to check if Google has changed their structure.
from opendirectorydownloader.
I tried the format you asked for, and I don't have the mistake anymore !
On the other hand, the application shows me that the indexing is finished, but all the values show 0 while the folder is not empty.
I tried with other gdrive folders, with a single file inside or other nested folders and the result is the same.
from opendirectorydownloader.
Hmm, that is not supposed to happen indeed.
I'll try the one myself later.
from opendirectorydownloader.
It is working as expected 😮
Url: https://drive.google.com/drive/folders... | ||
---|---|---|
Extension (Top 5) | Files | Size |
.mkv | 2,077 | 3.81 TiB |
.flac | 24,244 | 748.65 GiB |
38,140 | 279.71 GiB | |
.mp4 | 1,068 | 219.56 GiB |
.iso | 69 | 196.36 GiB |
Dirs: 11,649 Ext: 166 | Total: 175,545 | Total: 5.87 TiB |
Date (UTC): 2020-06-07 18:56:47 | Time: 00:31:08 |
Could you check the OpenDirectoryDownloader.log ?
from opendirectorydownloader.
Here's a screenshot of the log and the file if you need it :
from opendirectorydownloader.
Thanks, looks like it is another error. And it looks like I didn't correctly handle errors on that part.
Made a new version, please try this one and see what error it really is.
https://github.com/KoalaBear84/OpenDirectoryDownloader/releases/tag/v1.4.0.9
from opendirectorydownloader.
I tested with version "v1.4.0.9", and it worked fine :)
I didn't get any error message this time and I didn't change anything in my OpenDirectoryDownloader.GoogleDrive.json
.
In my OpenDirectoryDownloader.GoogleDrive.json
generated at the beginning I didn't have a "secret_client" line.
To get the "secret_client" I had to create an OAuth 2.0 client ID instead of a Service Account, and I tested a scan directly after creating this ID and completing the OpenDirectoryDownloader.GoogleDrive.json
as previously asked.
Maybe there is a delay before you can use the API after the creation of these identifiers?
Unfortunately I don't have any error messages that explain why it didn't work before, but it works now, thanks!
from opendirectorydownloader.
@leodomi @KoalaBear84 Can anyone please help me with Getting secret_client
? I am on the latest version, I have OpenDirectoryDownloader.GoogleDrive.json file with the content I got from json credentials file from console.cloud site. I am on the OAuth Consent Screen and there are too many options to be filled in there ? I am having doubts. Would really appreciate any help I can get.
from opendirectorydownloader.
English is not my first language so the name of tabs and other things may not be accurate
Choose "User type" --> Internal
Then in the next page, just put a name in the textbox under "internal", and then you can save at the bottom
Go back to "credential", "create a credential", OAuth ID CLient", "desktop app (?) (the 6th choice in the list), "create"
And you will have your secret client
from opendirectorydownloader.
@KoalaBear84 I just checked, the updated long method in README it works , without any issues.
- Detailed version of how I verified: I followed the longer method present in Google Drive section of README. Everything is correct. I tested on this public link
https://drive.google.com/drive/folders/1cH7YbnPAh8IOxjf7FBMgCTp9VtayjqCK
. - On running for the first time, I entered the GDrive public link given above, I got the OAuth prompt with a warning that app isn't verified, proceed only if you are aware, so I advanced, selected a google account and after that I got the total size of the directory with accurate description of file items as well.
- Here is a screenshot of it in action:
from opendirectorydownloader.
Thanks @AnmolTomer for your good check and report. I'll close the issue 👍
from opendirectorydownloader.
Related Issues (20)
- Cloudflare HOT 11
- Support for http authentication HOT 5
- No URLs to save for AliceAndBooks.com HOT 6
- Crash when not specifying a protocol HOT 5
- No folder for LogArchives on systems with `/` as path seperator HOT 4
- SIGABRT on unknown cli args HOT 4
- Add version to JSON
- Add removal URL for uploaded files to JSON HOT 1
- Add mounting support HOT 5
- Actual OD Downloading support HOT 1
- Continous Downloading/Crawling depending on Timestamp HOT 1
- Copyparty `--force-js` support HOT 3
- Unsupported site HOT 1
- S3 support HOT 4
- 2.9.0.3 errors HOT 4
- Only single Chromium instance
- cant open in colab, giving error HOT 1
- JSON save error when using custom port HOT 1
- ways to bypass Cloudflare HOT 1
- How to Paste URLs into the program. HOT 4
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 opendirectorydownloader.