回答編集履歴
2
fixed code
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
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
|
-
res
|
15
|
+
res = session.get(url)
|
16
|
-
|
16
|
+
soup = BeautifulSoup(res.text, "html.parser")
|
17
17
|
```
|