Open svennickel opened 3 years ago
I got the same issue on macOS
I run my script with
python3 app.py
2021-06-08 11:40:15,926 [INFO] Base - Searching for app id
Traceback (most recent call last):
File "/Users/cerebra/workspace/stablehouse/scraping-app-store/app.py", line 13, in <module>
minecraft = AppStore(country="nz", app_name="minecraft")
File "/opt/homebrew/lib/python3.9/site-packages/app_store_scraper/app_store.py", line 23, in __init__
super().__init__(
File "/opt/homebrew/lib/python3.9/site-packages/app_store_scraper/base.py", line 47, in __init__
app_id = self.search_id()
File "/opt/homebrew/lib/python3.9/site-packages/app_store_scraper/base.py", line 175, in search_id
app_id = re.search(pattern, self._response.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
@svennickel
what's your output of
❯ python3 --version
Python 3.9.5
The very first time you visit Google nowadays (at least in my country) you need to give consent for them to store cookies and track you (or not). In the code current to this date there is no cookie included and so the search in base.py blocks because it does not receive the result page it expects, but instead receives the content page. This can probably be solved by adding a cookie to the request indicating that you already visited google...
I try to run the simple demo script:
It fails as follows: