Skip to content

Commit 39458e9

Browse files
committed
workbook 자동화
1 parent 49b3440 commit 39458e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workbook/actions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ def parse_category():
1919
return category
2020

2121
def get_problem_info(workbook_url):
22-
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'}
22+
headers = {
23+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
24+
"AppleWebKit/537.36 (KHTML, like Gecko) "
25+
"Chrome/114.0.0.0 Safari/537.36"
26+
}
2327
txt = requests.get(workbook_url, headers=headers).text
2428
pattern = '/problem/'
2529
ret = []

0 commit comments

Comments
 (0)