8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42beea commit 1fa4258Copy full SHA for 1fa4258
workbook/actions.py
@@ -16,7 +16,8 @@ def parse_category():
16
return category
17
18
def get_problem_info(workbook_url):
19
- txt = requests.get(workbook_url).text
+ headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36'}
20
+ txt = requests.get(workbook_url, headers=headers).text
21
pattern = '/problem/'
22
ret = []
23
while True:
0 commit comments