Closed serhatgksu closed 4 years ago
Hi @serhatgksu,
It is as Python tells you: the website you are trying to access sends BOM (a preamble for UTF-8) and the hardcoded encoding assumed by wp-json-scraper does not expect BOM.
See here about BOM: https://en.wikipedia.org/wiki/Byte_order_mark
I assume this to be a bug in my code because of the fact I assume that the document returned by WordPress is plain UTF-8 without BOM (which is true is most cases). I'll look for a more proper way to handle this in a few hours. Keep an eye on the master branch.
This should work fine now on master, including with UTF-8 documents including BOM.
Could you confirm? Thank you.
How can I solve this ?
python .\WPJsonScraper.py -i "https://guvenliksistemleri.net"