这个网址的 https://www.chiaexplorer.com/blockchain/blocks 的这个接口https://api2.chiaexplorer.com/blockchainSummary
爬虫后提示:
import requests
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"Host": "chiaexplorer.com",
"Referer": "https://www.chiaexplorer.com/"
}
rsp = requests.get("https://api2.chiaexplorer.com/blockchainSummary",headers=headers)
print(rsp.json())
这是我的code
您可以尝试携带cokies访问