Open knoxwave opened 4 years ago
Same applies to categories & details
AttributeError: module 'play_scraper' has no attribute 'categories'
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.
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