diff --git a/dynamic.py b/dynamic.py new file mode 100644 index 0000000000000000000000000000000000000000..e5596d6ae3074fbab780c1f70b506da8249a00ec --- /dev/null +++ b/dynamic.py @@ -0,0 +1,21 @@ +from urllib.parse import urlencode +import csv +import random +import requests +import traceback +from time import sleep +from lxml import etree + +base_url = 'http://www.hshfy.sh.cn/shfy/gweb2017/ktgg_search_content.jsp?' #这里要换成对应Ajax请求中的链接 + +headers = { + 'Connection': 'keep-alive', + 'Accept': '*/*', + 'X-Requested-With': 'XMLHttpRequest', + 'User-Agent': '你的User-Agent', + 'Origin': 'http://www.hshfy.sh.cn', + 'Referer': 'http://www.hshfy.sh.cn/shfy/gweb2017/ktgg_search.jsp?zd=splc', + 'Accept-Language': 'zh-CN,zh;q=0.9', + 'Content-Type': 'application/x-www-form-urlencoded', + 'Cookie': '你的Cookie' +} \ No newline at end of file diff --git a/main.py b/staticHTML.py similarity index 100% rename from main.py rename to staticHTML.py