Home > Blockchain >  Python Web Scrape Request resulting in a 406 Error
Python Web Scrape Request resulting in a 406 Error

Time:05-14

I am trying to scrape enter image description here

CodePudding user response:

headers = {
    "Accept-Encoding": "gzip, deflate, br",
    "Accept-Language": "en-US,en;q=0.9",
   ...

You've told the website that you will only accept responses that use these specific encodings, and these specific languages.

But the website can't deliver those. So it returns 406, telling you that it can't meet your requirements.

  • Related