diff --git a/.idea/misc.xml b/.idea/misc.xml index 21567e3..d56657a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/api/index.py b/api/index.py index 383f1b2..abfc93e 100644 --- a/api/index.py +++ b/api/index.py @@ -19,7 +19,7 @@ def url_2_html(url): def get_308(name): url = 'http://tuo-site.oss-cn-beijing.aliyuncs.com/data.json' - r = requests.get(url) + r = requests.get(url, headers={'referer': 'https://tuo.icodeq.com/'}) _data = json.loads(r.text) try: url = _data[name]