Git Product home page Git Product logo

gdrive-appdata's Introduction

Hi there ๐Ÿ‘‹

link

gdrive-appdata's People

Contributors

frod0r avatar nelenkov avatar smartjinyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gdrive-appdata's Issues

Add support to download more than 100 files

Hi, thanks for the nice script to download Google Drive AppData. There is a small problem that currently it only supports download 100 files maximum. We can fix this by utilizing the nextPageToken returned by service.files().list() in line 308 - 309. Also pageSize can be increased to 1000.

results = service.files().list(spaces='appDataFolder',

pageSize=100, fields="nextPageToken, files(id, name)").execute()

I have made a fix on my fork. If it's OK, I can create a PR and merge it to this repo.
smartjinyu@00a776a

Doesn't work

Crashes on startup with following traceback:

Traceback (most recent call last):
  File "get-gdrive-appdata.py", line 372, in <module>
    main()
  File "get-gdrive-appdata.py", line 278, in main
    master_token = get_master_token(args.account, args.password, device_id, target_package)
  File "get-gdrive-appdata.py", line 208, in get_master_token
    r.raise_for_status()
  File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://android.clients.google.com/auth

I have submitted correct credentials.

Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.

I'm trying to retrieve Google Allo app data with your script, but I get this error:

./get-gdrive-appdata.py --account [email protected] --password xxx --target-package com.google.android.apps.fireball --target-package-sig A0C8A767E81DDDCEB31B05E6F22611CF03E2D0DD
Using device ID=0000000000000000
Using account: [email protected]
master token: xxx

Getting package [com.google.android.apps.fireball] with hash [A0C8A767E81DDDCEB31B05E6F22611CF03E2D0DD]
GDrive token: xxx
Error: <HttpError 403 when requesting https://www.googleapis.com/drive/v3/files?fields=nextPageToken%2C+files%28id%2C+name%29&alt=json&spaces=appDataFolder&pageSize=100 returned "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.">

Do I need to replace an API key in the script?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.