Estou tendo esse Erro 401. Tentei algumas coisas como alterar a autorização do arquivo recent_research.py, mas não deu muito certo.
linux@DESKTOP-O1HHUMU:~/datapipeline$ sudo python3 recent_search.py
401
Traceback (most recent call last):
File "recent_search.py", line 53, in <module>
main()
File "recent_search.py", line 48, in main
json_response = connect_to_endpoint(url, headers)
File "recent_search.py", line 40, in connect_to_endpoint
raise Exception(response.status_code, response.text)
Exception: (401, '{\n "title": "Unauthorized",\n "type": "about:blank",\n "status": 401,\n "detail": "Unauthorized"\n}')