Visit a requesturl, newspaper "error on line 1 at column 1: Document is empty"

1. When the browser accesses a Request URL, "error on line 1 at column 1: Document is empty" appears, but the Status Code is 200, and the response data of json is also returned.
2. I used python to climb the content of this site, and now requests can"t get the data of this url.
3. I haven"t changed many browsers. Is it the server code problem of this website?

The Content-Type field in the

response header indicates that the returned content is xml, but if you look at its content, it should be json, so the browser parses json as xml. There must be an error.
so, it is really possible that there is a problem on the server side; it is also possible that


may have done anti-crawler, and if it is a crawler visit, return this error


try to modify the headers by proxy and then visit again to make sure that the website is anti-crawling.

Menu