JoMingyu / google-play-scraper

Google play scraper for Python inspired by <facundoolano/google-play-scraper>
MIT License
757 stars 206 forks source link

[BUG] App result is "None" for most fields. #113

Closed FunBinge closed 2 years ago

FunBinge commented 2 years ago

google_play_scraper.VERSION 1.0.2 Python 3.10

Describe the bug I downloaded the package and simply ran the example code and the result is strange, only a few fields are filled out, the rest are None. This is the result of me running the example code:

{'title': None, 'description': None, 'descriptionHTML': None, 'summary': None, 'summaryHTML': None, 'installs': None, 'minInstalls': None, 'score': None, 'ratings': None, 'reviews': None, 'histogram': [0, 0, 0, 0, 0], 'price': None, 'free': None, 'currency': None, 'sale': False, 'saleTime': None, 'originalPrice': None, 'saleText': None, 'offersIAP': False, 'inAppProductPrice': None, 'size': [None, None, [[[[None, [[0, 'USD', '']], None, [None, 'Buy'], None, 1, [None, None, None, None, None, [None, None, 'https://play.google.com/store/apps/details?id=com.nianticlabs.pokemongo&rdid=com.nianticlabs.pokemongo&feature=md&offerId']], None, ['CAE='], None, None, None, None, None, None, None, []]], ['Install'], None, ['CgYKBENBRT0=']]], None, [[None, [[600], None, [604800]]]]], 'androidVersion': None, 'androidVersionText': None, 'developer': None, 'developerId': None, 'developerEmail': None, 'developerWebsite': None, 'developerAddress': None, 'privacyPolicy': None, 'developerInternalID': None, 'genre': None, 'genreId': None, 'icon': None, 'headerImage': None, 'screenshots': [], 'video': None, 'videoImage': None, 'contentRating': None, 'contentRatingDescription': None, 'adSupported': None, 'containsAds': False, 'released': None, 'updated': None, 'version': None, 'recentChanges': None, 'recentChangesHTML': None, 'comments': ["removed this for brevity..."], 'editorsChoice': True, 'similarApps': None, 'moreByDeveloper': ['com.nianticlabs.pikmin', 'com.nianticproject.ingress'], 'appId': 'com.nianticlabs.pokemongo', 'url': 'https://play.google.com/store/apps/details?id=com.nianticlabs.pokemongo&hl=en&gl=us'}

Code

from google_play_scraper import app

result = app(
    'com.nianticlabs.pokemongo',
    lang='en', # defaults to 'en'
    country='us' # defaults to 'us'
)
print(result)

Expected behavior The fields should be filled out as per the documentation's example (https://github.com/JoMingyu/google-play-scraper)

Any help is appreciated!

FunBinge commented 2 years ago

Whoops, just found the issue is on my version of the package. This was fixed in 1.0.3.