Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Attempting to scrape permissions causes a crash for some but not all apps #221

Open
programmeuris opened this issue Jul 26, 2024 · 0 comments
Assignees

Comments

@programmeuris
Copy link

Library version
Version: 1.2.7

Describe the bug
Attempting to scrape permissions raises TypeError for some but not all apps. Code attempts to access data in a JSON object, but is passed NoneType instead of a JSON object, which causes the crash.
Crash occurs at google_play_scraper/features/permissions.py at line 18.

Code
Id used in code below is an example of a package that causes the crash.

import json
import traceback
from google_play_scraper import permissions

try:
    perm_data = permissions("com.mediastudio.allvideodownloader.downloadvideoshd.bestdownloader")
    print(json.dumps(perm_data, indent=2))
except Exception as e:
    print("An exception occurred:")
    traceback.print_exc()

Expected behavior
The permissions() method should return an object containing the permissions required by the app with the given id.

Additional context
Output of the code above:
google_play_scraper_permissions_crash

@programmeuris programmeuris changed the title [BUG] [BUG] Attempting to scrape permissions causes a crash for some but not all apps Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants