You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While requesting NEW_FREE collection I get IndexError exception:
File ".../python2.7/site-packages/play_scraper/api.py", line 41, in collection
return s.collection(collection, category, **kwargs)
File ".../python2.7/site-packages/play_scraper/scraper.py", line 134, in collection
for app_card in soup.select('div[data-uitype="500"]')]
File ".../python2.7/site-packages/play_scraper/utils.py", line 358, in parse_card_info
developer_id = dev_soup.attrs['href'].split('=')[1]
IndexError: list index out of range
To Reproduce
run play_scraper.collection(collection='NEW_FREE',results=100,page=0,gl='us')
Expected behavior
Should receive list of app metadata from specified Chart in Google Play
Screenshots
Not applicable
Desktop (please complete the following information):
Upon better inspection I have realised, there is this exception because (at least) one app in the list has no developer name (not sure how is this possible).
Describe the bug
While requesting NEW_FREE collection I get IndexError exception:
File ".../python2.7/site-packages/play_scraper/api.py", line 41, in collection
return s.collection(collection, category, **kwargs)
File ".../python2.7/site-packages/play_scraper/scraper.py", line 134, in collection
for app_card in soup.select('div[data-uitype="500"]')]
File ".../python2.7/site-packages/play_scraper/utils.py", line 358, in parse_card_info
developer_id = dev_soup.attrs['href'].split('=')[1]
IndexError: list index out of range
To Reproduce
run play_scraper.collection(collection='NEW_FREE',results=100,page=0,gl='us')
Expected behavior
Should receive list of app metadata from specified Chart in Google Play
Screenshots
Not applicable
Desktop (please complete the following information):
Additional context
It seems, like the scraper is getting wrong response from Google Play and cannot parse it correctly.
The text was updated successfully, but these errors were encountered: