We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug What's New / "recent_changes" returns None even though it exists.
To Reproduce
import play_scraper as ps data = ps.details('com.supercell.clashofclans') print(data['recent_changes'])
Expected behavior Should return the value for 'what's new' when it exists.
Screenshots Not required
Desktop (please complete the following information):
Additional context Issue can be resolved by changing code to recent_changes = changes_soup.text
recent_changes = changes_soup.text
The text was updated successfully, but these errors were encountered:
try: changes_soup = soup.select('div[itemprop="description"] content')[1] recent_changes = '\n'.join([x.string.strip() for x in changes_soup]) except (IndexError, AttributeError): recent_changes = None
^ from utils.py It fails for many apps for example: com.supercell.clashofclans & com.instagram.zara
Fix: Change recent_changes = '\n'.join([x.string.strip() for x in changes_soup]) to recent_changes = changes_soup.text
recent_changes = '\n'.join([x.string.strip() for x in changes_soup])
Sorry, something went wrong.
Fixed by #33
No branches or pull requests
Describe the bug
What's New / "recent_changes" returns None even though it exists.
To Reproduce
Expected behavior
Should return the value for 'what's new' when it exists.
Screenshots
Not required
Desktop (please complete the following information):
Additional context
Issue can be resolved by changing code to
recent_changes = changes_soup.text
The text was updated successfully, but these errors were encountered: