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.