回答編集履歴

2

fixed code

2022/10/08 11:34

投稿

ps_aux_grep
ps_aux_grep

スコア1579

test CHANGED
@@ -14,4 +14,10 @@
14
14
 
15
15
  res = session.get(url)
16
16
  soup = BeautifulSoup(res.text, "html.parser")
17
+
18
+ #findメソッドで取り出してみる
19
+ element_find = soup.find_all("span", {"class": "fsize-28 font-change-24 font-weight-bold"})
20
+
21
+ for num in element_find:
22
+ print(num.text.strip())
17
23
  ```

1

fixed code

2022/10/08 11:19

投稿

ps_aux_grep
ps_aux_grep

スコア1579

test CHANGED
@@ -12,6 +12,6 @@
12
12
  for cookie in driver.get_cookies():
13
13
  session.cookies.set(cookie["name"], cookie["value"])
14
14
 
15
- result = session.post(url,data=payload)
15
+ res = session.get(url)
16
- data = json.loads(result.text)
16
+ soup = BeautifulSoup(res.text, "html.parser")
17
17
  ```