|
ayuge
发表于 2021-4-8 18:35:29
|
显示全部楼层
# 貌似没有反爬,cookies 和 params 中 除了 page 都可写死 import requests cookies = { 'cbHh_2132_saltkey': 'KR88O11y', # 'cbHh_2132_lastvisit': '1617874096', # 'cbHh_2132_duceapp_sid': 'x9m7WT', # 'UM_distinctid': '178b1068207348-0dee75622936fa-c3f3568-fa000-178b1068208bab', # 'CNZZDATA1277983963': '1517974636-1617877672-%7C1617877672', # 'cbHh_2132_sid': 'KpY2ZH', # 'cbHh_2132_lastact': '1617877697%09plugin.php%09', } headers = { 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Referer': 'http://www.bxxx.cn/plugin.php?id=fn_job&m=list&class=1&classid=1', 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8', } params = ( ('id', 'fn_job:Ajax'), ('f', 'GetAjaxList'), ('page', '1'), ('class', '1'), ('formhash', '1094b37c'), ('province', ''), ('city', ''), ('dist', ''), ('bbclassid', '1'), ('bclassid', ''), ('classid', ''), ('month_wages', ''), ('experience', ''), ('education', ''), ('order', ''), ('keyword', ''), ) response = requests.get('http://www.bxxx.cn/plugin.php', headers=headers, params=params, cookies=cookies, verify=False) print(response.text) |
|