Skip to content
New issue

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

UnicodeEncodeError when using python 2.7 #1

Open
HandsomeDevilv112 opened this issue May 2, 2018 · 0 comments
Open

UnicodeEncodeError when using python 2.7 #1

HandsomeDevilv112 opened this issue May 2, 2018 · 0 comments

Comments

@HandsomeDevilv112
Copy link

when I run scraper.py, it will download a few song, but then will suddenly stop with the error

Traceback (most recent call last):
File "scraper.py", line 137, in
get_lyrics(hit['result']['api_path'])
File "scraper.py", line 116, in get_lyrics
print 'Lyrics %s' % lyrics
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 559: ordinal not in range(128)

I've been able to reproduce this with Bob Dylan, Britney Spears, Phil Collins, and Simon and Garfunkel.
Additionally, I've attempted to fix this myself, but have had no luck thus far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant