mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 03:59:57 +08:00
Merge branch 'master' of github.com:luzhisheng/js_reverse
This commit is contained in:
commit
1938fe9f0a
@ -1,25 +0,0 @@
|
|||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
def challenge19():
|
|
||||||
url = "https://www.python-spider.com/api/challenge19"
|
|
||||||
payload = "page=1"
|
|
||||||
session = requests.session()
|
|
||||||
headers = {
|
|
||||||
'Content-Type': 'text/plain'
|
|
||||||
}
|
|
||||||
session.headers = headers
|
|
||||||
response = session.request("POST", url, headers=headers, data=payload)
|
|
||||||
return response.text
|
|
||||||
|
|
||||||
|
|
||||||
def run():
|
|
||||||
data_num = 0
|
|
||||||
for page in range(1, 101):
|
|
||||||
response_content = challenge19()
|
|
||||||
print(response_content)
|
|
||||||
exit()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
run()
|
|
@ -1,5 +0,0 @@
|
|||||||
# 知识点:
|
|
||||||
|
|
||||||
## 解题思路
|
|
||||||
|
|
||||||
模拟请求地址,发现返回的是一串js
|
|
Loading…
x
Reference in New Issue
Block a user