danieliu / play-scraper

A web scraper to retrieve application data from the Google Play Store.
MIT License
233 stars 103 forks source link

play_scraper.collection () Not Working #72

Open knoxwave opened 4 years ago

knoxwave commented 4 years ago

File "3.py", line 2, in print(play_scraper.collection( File "C:\Users\Knox\AppData\Local\Programs\Python\Python38-32\lib\site-packages\play_scraper\api.py", line 41, in collection return s.collection(collection, category, **kwargs) File "C:\Users\Knox\AppData\Local\Programs\Python\Python38-32\lib\site-packages\play_scraper\scraper.py", line 132, in collection response = send_request('POST', url, data, self.params) File "C:\Users\Knox\AppData\Local\Programs\Python\Python38-32\lib\site-packages\play_scraper\utils.py", line 121, in send_request response.raise_for_status() File "C:\Users\Knox\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://play.google.com/store/apps/category/GAME_RACING/collection/movers_shakers?hl=en&gl=us

goddard82 commented 4 years ago

Same applies to categories & details

AttributeError: module 'play_scraper' has no attribute 'categories'

Earthwater commented 3 years ago

Sure, it is a bug now. Once you try this url in your browser, you would also get 404 error, an alternative way is to use collection method merely, and filter the results returned with category.

Or waiting for the nice contributors of this useful project to fix this bug.