Skip to content

Commit

Permalink
添加python referer
Browse files Browse the repository at this point in the history
  • Loading branch information
zkeq committed Feb 18, 2022
1 parent 722bf3c commit 0359f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

1 comment on commit 0359f57

@vercel
Copy link

@vercel vercel bot commented on 0359f57 Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.