回答編集履歴
2
説明の追記
answer
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
> 'module' object is not callable
|
2
|
+
|
1
3
|
これ見てください
|
2
4
|
[python3,chromeのスクレイピングについて](https://teratail.com/questions/193331)
|
3
5
|
|
@@ -6,7 +8,7 @@
|
|
6
8
|
|
7
9
|
となったら、
|
8
10
|
brew install chromedriver
|
9
|
-
でインストールしたchromedriverがMacのどこにあるのかを探して、
|
11
|
+
でインストールした「chromedriver」がMacのどこにあるのかを探して、
|
10
12
|
```python
|
11
13
|
webdriver.Chrome()
|
12
14
|
```
|
1
コード追加
answer
CHANGED
@@ -1,2 +1,22 @@
|
|
1
1
|
これ見てください
|
2
|
-
[python3,chromeのスクレイピングについて](https://teratail.com/questions/193331)
|
2
|
+
[python3,chromeのスクレイピングについて](https://teratail.com/questions/193331)
|
3
|
+
|
4
|
+
.
|
5
|
+
> No such file or directory: 'chromedriver'
|
6
|
+
|
7
|
+
となったら、
|
8
|
+
brew install chromedriver
|
9
|
+
でインストールしたchromedriverがMacのどこにあるのかを探して、
|
10
|
+
```python
|
11
|
+
webdriver.Chrome()
|
12
|
+
```
|
13
|
+
の部分を
|
14
|
+
```python
|
15
|
+
webdriver.Chrome(executable_path='chromedriverの絶対パス')
|
16
|
+
```
|
17
|
+
に変えてください
|
18
|
+
たとえば、
|
19
|
+
```python
|
20
|
+
webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')
|
21
|
+
```
|
22
|
+
みたいに
|