我正在用 python 编写一个连接到 Restful Web 服务的客户端接口,不幸的是,该 Web 服务需要请求中存在自定义标头。我一直在使用 Requests 来实现此目的,但是 Web 服务还要求标头在请求中按特定顺序排列。我无法弄清楚请求如何对标头进行排序,并查看是否有办法能够控制此排序。
如果有人有建议,我也愿意在我的应用程序中使用除请求之外的其他模块。
I am trying to parse/scrape https://etherscan.io/tokens website using requests in Python but I get the following error:
etherscan.io
Checking if the site connection is secure
etherscan.io needs to review the security of your connection before proceeding. Ray ID: 73b56fc71bc276ed Performance & security by Cloudflare
Now, I found a solution here: /sf/answers/4388117331/ but when I try to use this solution, I am still not being able to read the actual content of the website and getting a different error stated below. …