回答編集履歴
2
executable_path= を追記、参照元を追記
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```python
|
12
12
|
|
13
|
-
driver = webdriver.Chrome("C:/Program Files/chromedriver_win32/chromedriver.exe")
|
13
|
+
driver = webdriver.Chrome(executable_path="C:/Program Files/chromedriver_win32/chromedriver.exe")
|
14
14
|
|
15
15
|
```
|
16
16
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
```python
|
24
24
|
|
25
|
-
driver = webdriver.Chrome("C:/Users/tmp/Desktop/python/chromedriver.exe")
|
25
|
+
driver = webdriver.Chrome(executable_path="C:/Users/tmp/Desktop/python/chromedriver.exe")
|
26
26
|
|
27
27
|
```
|
28
28
|
|
@@ -31,3 +31,9 @@
|
|
31
31
|
ご参照;
|
32
32
|
|
33
33
|
[‘selenium’ executable may have wrong permissions と出たときの対処法](https://tachitechi.com/selenium-executable-may-have-wrong-permissions-%E3%81%A8%E5%87%BA%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AE%E5%AF%BE%E5%87%A6%E6%B3%95/)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<2021/01/09 13:30 追記>
|
38
|
+
|
39
|
+
[pythonでスクレイピングしてみた~selenium編~](https://imagisi.com/selenium/)
|
1
ドライバの拡張子(.exe)を書き洩らしていました。追記しましたのでご確認ください。
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```python
|
12
12
|
|
13
|
-
driver = webdriver.Chrome("C:/Program Files/chromedriver_win32/chromedriver")
|
13
|
+
driver = webdriver.Chrome("C:/Program Files/chromedriver_win32/chromedriver.exe")
|
14
14
|
|
15
15
|
```
|
16
16
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
```python
|
24
24
|
|
25
|
-
driver = webdriver.Chrome("C:/Users/tmp/Desktop/python/chromedriver")
|
25
|
+
driver = webdriver.Chrome("C:/Users/tmp/Desktop/python/chromedriver.exe")
|
26
26
|
|
27
27
|
```
|
28
28
|
|