質問編集履歴
9
個人情報
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
Traceback (most recent call last):
|
|
14
14
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
|
15
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\
|
|
15
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
|
|
16
16
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
|
|
17
17
|
desired_capabilities=desired_capabilities)
|
|
18
18
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
|
8
改善ポイント
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -3,32 +3,27 @@
|
|
|
3
3
|
して人気ランキングを作るというものです。
|
|
4
4
|
URLは
|
|
5
5
|
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
|
6
|
-
です。エラーの内容は、
|
|
6
|
+
です。エラーの内容は、白い画像が一瞬でてきてすぐに消えるというものです。
|
|
7
|
-
|
|
7
|
+
chromedriver.exeをフルパスで指定しました。
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### 発生している問題・エラーメッセージ
|
|
12
12
|
|
|
13
13
|
Traceback (most recent call last):
|
|
14
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
|
|
15
|
-
stdin=PIPE)
|
|
16
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
|
|
17
|
-
restore_signals, start_new_session)
|
|
18
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
|
|
19
|
-
startupinfo)
|
|
20
|
-
PermissionError: [WinError 5] アクセスが拒否されました。
|
|
21
|
-
|
|
22
|
-
During handling of the above exception, another exception occurred:
|
|
23
|
-
|
|
24
|
-
Traceback (most recent call last):
|
|
25
14
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
|
26
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\
|
|
15
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\一歩\PycharmProjects\sampleproject2\chromedriver.exe")
|
|
27
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line
|
|
16
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
|
|
17
|
+
desired_capabilities=desired_capabilities)
|
|
18
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
|
|
28
|
-
self.
|
|
19
|
+
self.start_session(capabilities, browser_profile)
|
|
20
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
|
|
21
|
+
response = self.execute(Command.NEW_SESSION, parameters)
|
|
29
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\
|
|
22
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
|
|
23
|
+
self.error_handler.check_response(response)
|
|
24
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
|
|
30
|
-
|
|
25
|
+
raise exception_class(message, screen, stacktrace)
|
|
31
|
-
selenium.common.exceptions.
|
|
26
|
+
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
|
|
32
27
|
|
|
33
28
|
|
|
34
29
|
|
|
@@ -46,7 +41,7 @@
|
|
|
46
41
|
"た", "ち", "つ", "て", "と", "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ",
|
|
47
42
|
"ま", "み", "む", "め", "も", "や", "ゆ", "よ", "ら", "り", "る", "れ", "ろ", "わ", "を", "ん"
|
|
48
43
|
]
|
|
49
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\
|
|
44
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
|
|
50
45
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
|
51
46
|
results = {}
|
|
52
47
|
for hiragana in hiragana_list:
|
7
改善
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
URLは
|
|
5
5
|
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
|
6
6
|
です。エラーの内容は、PermissionErrorというものです。
|
|
7
|
+
Permission Errorを改善するために空のrank.exeというファイルを作成しました。
|
|
7
8
|
|
|
8
9
|
|
|
10
|
+
|
|
9
11
|
### 発生している問題・エラーメッセージ
|
|
10
12
|
|
|
11
13
|
Traceback (most recent call last):
|
|
@@ -21,20 +23,15 @@
|
|
|
21
23
|
|
|
22
24
|
Traceback (most recent call last):
|
|
23
25
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
|
24
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
|
|
26
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
|
|
25
27
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
|
|
26
28
|
self.service.start()
|
|
27
29
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
|
|
28
30
|
os.path.basename(self.path), self.start_error_message)
|
|
29
|
-
selenium.common.exceptions.WebDriverException: Message: '
|
|
31
|
+
selenium.common.exceptions.WebDriverException: Message: 'rank.exe' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
|
|
30
32
|
|
|
31
33
|
|
|
32
|
-
Process finished with exit code 1
|
|
33
34
|
|
|
34
|
-
画像
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
|
|
38
35
|
### 該当のソースコード
|
|
39
36
|
|
|
40
37
|
```
|
|
@@ -49,7 +46,7 @@
|
|
|
49
46
|
"た", "ち", "つ", "て", "と", "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ",
|
|
50
47
|
"ま", "み", "む", "め", "も", "や", "ゆ", "よ", "ら", "り", "る", "れ", "ろ", "わ", "を", "ん"
|
|
51
48
|
]
|
|
52
|
-
driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
|
|
49
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
|
|
53
50
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
|
54
51
|
results = {}
|
|
55
52
|
for hiragana in hiragana_list:
|
6
題名
title
CHANGED
|
@@ -1,1 +1,1 @@
|
|
|
1
|
-
|
|
1
|
+
Chrome DriverでPermission Errorの改善方法を教えて下さい。
|
body
CHANGED
|
File without changes
|
5
エラーメッセージ
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -2,14 +2,36 @@
|
|
|
2
2
|
したら以下のようなエラーが発生しました。内容はDアニメストアをスクレイピング
|
|
3
3
|
して人気ランキングを作るというものです。
|
|
4
4
|
URLは
|
|
5
|
-
|
|
6
5
|
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
|
7
|
-
です。
|
|
6
|
+
です。エラーの内容は、PermissionErrorというものです。
|
|
8
|
-
お力を貸してください。
|
|
9
7
|
|
|
8
|
+
|
|
10
9
|
### 発生している問題・エラーメッセージ
|
|
11
10
|
|
|
11
|
+
Traceback (most recent call last):
|
|
12
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
|
|
13
|
+
stdin=PIPE)
|
|
14
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
|
|
15
|
+
restore_signals, start_new_session)
|
|
16
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
|
|
17
|
+
startupinfo)
|
|
18
|
+
PermissionError: [WinError 5] アクセスが拒否されました。
|
|
12
19
|
|
|
20
|
+
During handling of the above exception, another exception occurred:
|
|
21
|
+
|
|
22
|
+
Traceback (most recent call last):
|
|
23
|
+
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
|
24
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
|
|
25
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
|
|
26
|
+
self.service.start()
|
|
27
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
|
|
28
|
+
os.path.basename(self.path), self.start_error_message)
|
|
29
|
+
selenium.common.exceptions.WebDriverException: Message: 'sampleproject2' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Process finished with exit code 1
|
|
33
|
+
|
|
34
|
+
画像
|
|
13
35
|

|
|
14
36
|
|
|
15
37
|
|
4
編集
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
### 発生している問題・エラーメッセージ
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-

|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
### 該当のソースコード
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"た", "ち", "つ", "て", "と", "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ",
|
|
28
28
|
"ま", "み", "む", "め", "も", "や", "ゆ", "よ", "ら", "り", "る", "れ", "ろ", "わ", "を", "ん"
|
|
29
29
|
]
|
|
30
|
-
driver = webdriver.Chrome(executable_path="
|
|
30
|
+
driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
|
|
31
31
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
|
32
32
|
results = {}
|
|
33
33
|
for hiragana in hiragana_list:
|
3
リンクの挿入
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
したら以下のようなエラーが発生しました。内容はDアニメストアをスクレイピング
|
|
3
3
|
して人気ランキングを作るというものです。
|
|
4
4
|
URLは
|
|
5
|
+
|
|
5
|
-
[https://qiita.com/nanasaki/items/50528f794e0598969e28
|
|
6
|
+
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
|
6
7
|
です。どのように改善すればよいか皆目見当がつきません。
|
|
7
8
|
お力を貸してください。
|
|
8
9
|
|
2
リンクの挿入
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
Qiitaに載ってあったソースコードをそのままコピー
|
|
2
2
|
したら以下のようなエラーが発生しました。内容はDアニメストアをスクレイピング
|
|
3
3
|
して人気ランキングを作るというものです。
|
|
4
|
+
URLは
|
|
4
|
-
|
|
5
|
+
[https://qiita.com/nanasaki/items/50528f794e0598969e28]
|
|
5
6
|
です。どのように改善すればよいか皆目見当がつきません。
|
|
6
7
|
お力を貸してください。
|
|
7
8
|
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
writer.writerow((anime_title, favorite_count))
|
|
77
78
|
```
|
|
78
79
|
|
|
80
|
+
|
|
79
81
|
**補足情報**
|
|
80
|
-
|
|
81
82
|
hiragana_listとanime_titleとanime_ranking
|
|
82
83
|
のアンダーバーの前に波線がかかっております。
|
1
助詞
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
**補足情報**
|
|
80
80
|
|
|
81
81
|
hiragana_listとanime_titleとanime_ranking
|
|
82
|
-
|
|
82
|
+
のアンダーバーの前に波線がかかっております。
|