handbook icon indicating copy to clipboard operation
handbook copied to clipboard

scraping doesn't work properly from windows

Open Szeraax opened this issue 1 year ago • 1 comments

In addition to the fact that run.sh doesn't work if you don't have bash, that's not a big deal since its just "python ..." for the commands. However, the download of the handbook gives the error:

Failed to download 20-activities
'charmap' codec can't encode character '\u2002' in position 32849: character maps to <undefined>

This looks to be due to windows using default code page of 437 on windows terminal. updating to 850 via chcp doesn't fix it either. Any other way to make this scraper work easy on windows?

Szeraax avatar Mar 22 '25 05:03 Szeraax

Not off the top of my head unfortunately - do you happen to know where exactly in the code is throwing that error? If you could track that down I might be able to look into it more.

I just run this as a one-off on my linux machine when there's new updates, so haven't really attempted/planned on having windows support. Would be happy to accept a PR though!

contagon avatar Mar 22 '25 10:03 contagon