1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 16:01:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-22 11:21:15 +08:00
parent f3b23d1fc3
commit f5bf94d67e
46 changed files with 16014 additions and 11651 deletions

View File

@@ -48,7 +48,9 @@ def save_problem(title,content):
f.write(content)
def get_proble_content(problemUrl,title):
response = requests.get(problemUrl)
response = requests.get(problemUrl, headers = {
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36"
})
setCookie = response.headers["Set-Cookie"]
'''
print(setCookie)