Hi y'all,
I'm running a little web scraper, Python 3, using Beautifulsoup and csv. Once a day, I hit a website, grab what's there and put it in a .csv.
When I run it under the "files" tab, it runs fine. It places the data I grab in a .csv.
But if I schedule it, it doesn't work due to a UnicodeEncodeError
csvwriter.writerow(all_documents[i])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 18: ordinal not in range(128)
all_documents[i] is a list of str
I'm not clear on how encoding works.
How can I make this work as a scheduled script?