回答編集履歴

1

2020/03/06 04:09

投稿

nto
nto

スコア1438

test CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
  s = requests.Session()
14
14
 
15
+ res = s.get(target)
15
16
 
16
-
17
- soup = BeautifulSoup(s.get(target).content, 'html.parser')
17
+ soup = BeautifulSoup(res.content, 'html.parser')
18
18
 
19
19
  token = soup.find('input',{'name':'_token'}).get('value')
20
20