Skip to content

UnicodeEncodeError on some requests #2

@jpau

Description

@jpau

E.g. (note that is a placeholder for the URL I was downloading)

INFO:waybackscraper.wayback:Scraping the archive http://web.archive.org/web/20170118215122/<url here>

ERROR:waybackscraper.wayback:Error while scraping the archive http://web.archive.org/web/20120927070813/<url here> : 'charmap' codec can't encode character '\ufffd' in position 89238: character maps to <undefined> Traceback (most recent call last): File "...\lib\site-packages\waybackscraper\wayback.py", line 92, in scrape_archive scraping_result = await scrape_function(session, archive_url, archive_timestamp, archive_content) File "...\anaconda3\lib\site-packages\waybackscraper\scraper.py", line 60, in scrape output_file.write(result) File "...\anaconda3\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions