質問編集履歴
2
不適切な表現を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
下記サイトより設立年と資本金情報を取得したいと考えています。
|
2
2
|
|
3
|
-
https://
|
3
|
+
https://****************/
|
4
4
|
|
5
5
|
|
6
6
|
|
@@ -18,15 +18,15 @@
|
|
18
18
|
|
19
19
|
driver = webdriver.Chrome()
|
20
20
|
|
21
|
-
driver.get('https://
|
21
|
+
driver.get('https://*********************')
|
22
22
|
|
23
23
|
|
24
24
|
|
25
25
|
datas = []
|
26
26
|
|
27
|
-
driver.get('https://
|
27
|
+
driver.get('https://*******************************:')
|
28
28
|
|
29
|
-
elems = driver.find_elements_by_class_name('
|
29
|
+
elems = driver.find_elements_by_class_name('class_name')
|
30
30
|
|
31
31
|
for elem in elems:
|
32
32
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,10 +20,22 @@
|
|
20
20
|
|
21
21
|
driver.get('https://job.rikunabi.com/2020/company/r698881006/')
|
22
22
|
|
23
|
+
|
24
|
+
|
25
|
+
datas = []
|
26
|
+
|
27
|
+
driver.get('https://job.rikunabi.com/2020/company/r698881006/')
|
28
|
+
|
23
|
-
|
29
|
+
elems = driver.find_elements_by_class_name('ts-h-mod-dataTable02-cell_td')
|
30
|
+
|
31
|
+
for elem in elems:
|
32
|
+
|
33
|
+
datas.append(elem.text)
|
34
|
+
|
35
|
+
datas[1]
|
36
|
+
|
37
|
+
datas[2]
|
24
38
|
|
25
39
|
```
|
26
40
|
|
27
|
-
|
28
|
-
|
29
|
-
|
41
|
+
上記よりもスマートな取得方法がありましたら、ご教示いただけましたら幸甚です。
|