diff --git a/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/9.js b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/9.js index 539988f..4949fbb 100644 --- a/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/9.js +++ b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/9.js @@ -11582,7 +11582,7 @@ function decrypt(_0x50f9fa) { function get_m(time){ res = decrypt(time) + 'r'; - document['cookie'] = 'm=' + '2' + res + '; path=/'; + document['cookie'] = 'm=' + '2' + res; return document['cookie'] } diff --git a/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/img/8.png b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/img/8.png new file mode 100644 index 0000000..ce67fad Binary files /dev/null and b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/img/8.png differ diff --git a/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/main.py b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/main.py index e167eda..19b42e4 100644 --- a/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/main.py +++ b/猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/main.py @@ -1,7 +1,6 @@ import re import requests -import time import json @@ -30,12 +29,12 @@ class 实例1(object): return sign def get_task(self, i, time_str): - cookie = self.get_sign(time_str) - print(cookie) + m = self.get_sign(time_str) + print(m) url = f"https://match.yuanrenxue.cn/api/match/9?page={i}" Headers = { "User-Agent": "yuanrenxue.project", - "cookie": cookie + 'Cookie': f'm={m}; sessionid=t9dlfwn9s4ed4z1w1sktxg3k55dc3ko6' } req = requests.get(url, headers=Headers) return req.text