import requests
cookies = {
'auth_id': 'eyJpdiI6IlUzOEVzajFocW1ydGh4TGE0R00yaXc9PSIsInZhbHVlIjoidmw2UWF0cFJBMGF0TStBM0dBWVFNN09lMFpMV2xlMHdJSG1Ma1g4TUtSV0loKzJEY1psKzVML0ZjeVJUK1BTbk1obkFpYWNMUXdLSTJXWjdOK2lZSFluL3A4WmxkVDNoUElHbGx5UG9xTVk9IiwibWFjIjoiMTVjOTcxOWQyMmVhZTYxMjhhYjM5NGJiMDIyMGNhZTEyODcxYjdkMTIyMWZlZjQ4M2U4MjZiNjU0MGZiYjM3MSIsInRhZyI6IiJ9',
'RNLBSERVERID': 'ded896',
'age_verified': '1',
'_ga': 'GA1.1.508629104.1726387249',
'_ga_GPFSE55VKZ': 'GS1.1.1726387248.1.1.1726387530.0.0.0',
'XSRF-TOKEN': 'eyJpdiI6Ii9NeVc4U2FLRlBNUkRSL3VsRDhlQUE9PSIsInZhbHVlIjoiK2x2NGpYSG9vRjJ3THJWREwrU09TK0NzOXoweTVsbTRHZUJ2Y2N0Nk1WZ253VkhKYVNTOTVUV3EvNVRodkREellDRjlxdVJFTnhxR1N1TDd3WXU2dFVRWjYzeE1Da3NqbGxXQm9QdW53MDBuNlFIT3pFOU8vRFNiNGdLT1lzL2kiLCJtYWMiOiI4YTc4ZjkzNDc2ZTQxOWYxY2QwMDVlMDNkZGEwNGQ0MWNjZTQ1ZmY3MzBiODhkZTBmM2RkNmRmZDM4OTIyYmFiIiwidGFnIjoiIn0%3D',
'www_cs_session': 'eyJpdiI6IlZxNmhMZzF2Q1EvSW9hNkpyMVVPT2c9PSIsInZhbHVlIjoiNk1zbkxtSDZ0WUFsL2lrYUd4eWZqN01scWJtTXM2YWtJWWNWdnpJZElwdFFERVlFWHd3amNCcHVIa05qOHI1U21hbjBCUG9na05ld0IrckcyMlFvYSszNDZFaHltMXgvY2srb3lKa1FHRFNOQjFIb2VaZ3RiZHpyK0VlbzZieHQiLCJtYWMiOiI4NTU2MThiYzIyMTFiZWU5ZjZjYjY5YmI2NDk0YzBhZjc0NmI1ZjcxMGY3OTZlM2EwMDI1MGMwNDBjY2RjNmNkIiwidGFnIjoiIn0%3D',
}
headers = {
'accept': '*/*',
'accept-language': 'zh-CN,zh;q=0.9',
'cache-control': 'no-cache',
'content-type': 'application/json',
# 'cookie': 'auth_id=eyJpdiI6IlUzOEVzajFocW1ydGh4TGE0R00yaXc9PSIsInZhbHVlIjoidmw2UWF0cFJBMGF0TStBM0dBWVFNN09lMFpMV2xlMHdJSG1Ma1g4TUtSV0loKzJEY1psKzVML0ZjeVJUK1BTbk1obkFpYWNMUXdLSTJXWjdOK2lZSFluL3A4WmxkVDNoUElHbGx5UG9xTVk9IiwibWFjIjoiMTVjOTcxOWQyMmVhZTYxMjhhYjM5NGJiMDIyMGNhZTEyODcxYjdkMTIyMWZlZjQ4M2U4MjZiNjU0MGZiYjM3MSIsInRhZyI6IiJ9; RNLBSERVERID=ded896; age_verified=1; _ga=GA1.1.508629104.1726387249; _ga_GPFSE55VKZ=GS1.1.1726387248.1.1.1726387530.0.0.0; XSRF-TOKEN=eyJpdiI6Ii9NeVc4U2FLRlBNUkRSL3VsRDhlQUE9PSIsInZhbHVlIjoiK2x2NGpYSG9vRjJ3THJWREwrU09TK0NzOXoweTVsbTRHZUJ2Y2N0Nk1WZ253VkhKYVNTOTVUV3EvNVRodkREellDRjlxdVJFTnhxR1N1TDd3WXU2dFVRWjYzeE1Da3NqbGxXQm9QdW53MDBuNlFIT3pFOU8vRFNiNGdLT1lzL2kiLCJtYWMiOiI4YTc4ZjkzNDc2ZTQxOWYxY2QwMDVlMDNkZGEwNGQ0MWNjZTQ1ZmY3MzBiODhkZTBmM2RkNmRmZDM4OTIyYmFiIiwidGFnIjoiIn0%3D; www_cs_session=eyJpdiI6IlZxNmhMZzF2Q1EvSW9hNkpyMVVPT2c9PSIsInZhbHVlIjoiNk1zbkxtSDZ0WUFsL2lrYUd4eWZqN01scWJtTXM2YWtJWWNWdnpJZElwdFFERVlFWHd3amNCcHVIa05qOHI1U21hbjBCUG9na05ld0IrckcyMlFvYSszNDZFaHltMXgvY2srb3lKa1FHRFNOQjFIb2VaZ3RiZHpyK0VlbzZieHQiLCJtYWMiOiI4NTU2MThiYzIyMTFiZWU5ZjZjYjY5YmI2NDk0YzBhZjc0NmI1ZjcxMGY3OTZlM2EwMDI1MGMwNDBjY2RjNmNkIiwidGFnIjoiIn0%3D',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://www.xxxfollow.com/',
'sec-ch-ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
'x-auth-id': '76a21a35-773d-4830-b7a1-b3865e6c9974',
'x-csrf-token': 'TiqbHa6PBReDJHu66KQnls9EGDI8ziZW8brlmtrt',
}
params = {
'genders': 'cf',
'tags': '1',
'limit': '25',
'page': '8',
'start_time': '1726387140',
}
response = requests.get('https://www.xxxfollow.com/api/v1/user/public', params=params, cookies=cookies, headers=headers)
标签:www,cache,cookies,py,spider,接口,sec,ga,3D
From: https://www.cnblogs.com/xiaohai123/p/18415309