import requests
headers = {
'User-Agent': 'Apipost client Runtime/+https://www.apipost.cn/',
'x-locale': 'en',
'origin': 'https://www.indiegogo.com',
'accept-encoding': 'gzip, deflate, br',
'x-csrf-token': 'f6Xp3/uDYa1od5qnI0ofUCyWdDMVnpvyr5o+FBLWM8gH2M63k/IMEP2CMnnp2I4wB8r9z5dOjGi+2Ku/tDD42g==',
'accept-language': 'zh-CN,zh;q=0.9',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3877.400 QQBrowser/10.8.4533.400',
'content-type': 'application/json;charset=UTF-8',
'accept': 'application/json, text/plain, /',
'referer': 'https://www.indiegogo.com/explore/energy-green-tech?project_type=campaign&project_timing=all&sort=trending%27,
'authority': 'www.indiegogo.com',
'cookie': 'romref=dir-XXXX; romref_referer_host=; cohort=%7Cdir-XXXX; visitor_id=a1198d7bba9ca2be1a82ca9c4e8c5519f57354b84850cf9cb77a98950f5fd156; analytics_session_id=26fb2a1153b02647153d718ec4a3eabb80da911bbc52d15056d699aded1819f3; recent_project_ids=; _session_id=b458b4771cbe8a0eddffc5bc654f7c5b; _ga=GA1.2.587133861.1644472605; _gid=GA1.2.899660777.1644472605; _gat=1; _gcl_au=1.1.772293953.1644472636',
'Content-Type': 'application/json',
}
data = {
'{ "sort": "trending", "category_main": "Energy ': '',
' Green Tech", "category_top_level": "Tech ': '',
' Innovation", "project_timing": "all", "project_type": "campaign", "page_num": 1, "per_page": 12, "q": "", "tags": [] }': ''
}
response = requests.post('https://www.indiegogo.com/private_api/discover', headers=headers, data=data)
这样试试呢