質問編集履歴

9

個人情報

2020/02/01 12:31

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
28
28
 
29
- driver = webdriver.Chrome(executable_path=r"C:\Users\一歩\PycharmProjects\sampleproject2\chromedriver.exe")
29
+ driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
30
30
 
31
31
  File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
32
32
 

8

改善ポイント

2020/02/01 12:31

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  [リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
10
10
 
11
- です。エラーの内容は、PermissionErrorというものです。
11
+ です。エラーの内容は、白い画像が一瞬でてきてすぐに消えるというものです。
12
12
 
13
- Permission Errorを改善するために空のrank.exeというァイを作成しました。
13
+ chromedriver.exeフルパスで指定しました。
14
14
 
15
15
 
16
16
 
@@ -24,41 +24,31 @@
24
24
 
25
25
  Traceback (most recent call last):
26
26
 
27
- File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
28
-
29
- stdin=PIPE)
30
-
31
- File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
32
-
33
- restore_signals, start_new_session)
34
-
35
- File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
36
-
37
- startupinfo)
38
-
39
- PermissionError: [WinError 5] アクセスが拒否されました。
40
-
41
-
42
-
43
- During handling of the above exception, another exception occurred:
44
-
45
-
46
-
47
- Traceback (most recent call last):
48
-
49
27
  File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
50
28
 
51
- driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
29
+ driver = webdriver.Chrome(executable_path=r"C:\Users\一歩\PycharmProjects\sampleproject2\chromedriver.exe")
52
30
 
53
- File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
31
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
54
32
 
55
- self.service.start()
33
+ desired_capabilities=desired_capabilities)
56
34
 
57
- File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
35
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
58
36
 
59
- os.path.basename(self.path), self.start_error_message)
37
+ self.start_session(capabilities, browser_profile)
60
38
 
39
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
40
+
41
+ response = self.execute(Command.NEW_SESSION, parameters)
42
+
43
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
44
+
45
+ self.error_handler.check_response(response)
46
+
47
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
48
+
49
+ raise exception_class(message, screen, stacktrace)
50
+
61
- selenium.common.exceptions.WebDriverException: Message: 'rank.exe' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
51
+ selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
62
52
 
63
53
 
64
54
 
@@ -94,7 +84,7 @@
94
84
 
95
85
  ]
96
86
 
97
- driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
87
+ driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
98
88
 
99
89
  driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
100
90
 

7

改善

2020/02/01 12:21

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  です。エラーの内容は、PermissionErrorというものです。
12
12
 
13
+ Permission Errorを改善するために空のrank.exeというファイルを作成しました。
14
+
15
+
16
+
13
17
 
14
18
 
15
19
 
@@ -44,7 +48,7 @@
44
48
 
45
49
  File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
46
50
 
47
- driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
51
+ driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
48
52
 
49
53
  File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
50
54
 
@@ -54,19 +58,9 @@
54
58
 
55
59
  os.path.basename(self.path), self.start_error_message)
56
60
 
57
- selenium.common.exceptions.WebDriverException: Message: 'sampleproject2' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
61
+ selenium.common.exceptions.WebDriverException: Message: 'rank.exe' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
58
-
59
-
60
-
61
-
62
-
63
- Process finished with exit code 1
62
+
64
-
65
-
66
-
67
- 画像
63
+
68
-
69
- ![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
70
64
 
71
65
 
72
66
 
@@ -100,7 +94,7 @@
100
94
 
101
95
  ]
102
96
 
103
- driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
97
+ driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
104
98
 
105
99
  driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
106
100
 

6

題名

2020/02/01 11:42

投稿

hirahashi
hirahashi

スコア30

test CHANGED
@@ -1 +1 @@
1
- スクレイピングエラーの改善方法を教えてください。
1
+ Chrome DriverでPermission Errorの改善方法を教えてさい。
test CHANGED
File without changes

5

エラーメッセージ

2020/02/01 11:03

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -6,13 +6,11 @@
6
6
 
7
7
  URLは
8
8
 
9
-
10
-
11
9
  [リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
12
10
 
13
- です。に改善ればよいか皆目見当がつきません
11
+ です。エラー内容は、PermissionErrorといものです。
14
-
15
- お力を貸してください。
12
+
13
+
16
14
 
17
15
 
18
16
 
@@ -20,7 +18,53 @@
20
18
 
21
19
 
22
20
 
23
-
21
+ Traceback (most recent call last):
22
+
23
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
24
+
25
+ stdin=PIPE)
26
+
27
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
28
+
29
+ restore_signals, start_new_session)
30
+
31
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
32
+
33
+ startupinfo)
34
+
35
+ PermissionError: [WinError 5] アクセスが拒否されました。
36
+
37
+
38
+
39
+ During handling of the above exception, another exception occurred:
40
+
41
+
42
+
43
+ Traceback (most recent call last):
44
+
45
+ File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
46
+
47
+ driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
48
+
49
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
50
+
51
+ self.service.start()
52
+
53
+ File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
54
+
55
+ os.path.basename(self.path), self.start_error_message)
56
+
57
+ selenium.common.exceptions.WebDriverException: Message: 'sampleproject2' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
58
+
59
+
60
+
61
+
62
+
63
+ Process finished with exit code 1
64
+
65
+
66
+
67
+ 画像
24
68
 
25
69
  ![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
26
70
 

4

編集

2020/02/01 10:52

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- ![イメージ説明](09a2f1c93609a738b2a621804c456ec9.png)
25
+ ![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
26
26
 
27
27
 
28
28
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  ]
58
58
 
59
- driver = webdriver.Chrome(executable_path="chromeドライバの保存先パス")
59
+ driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
60
60
 
61
61
  driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
62
62
 

3

リンクの挿入

2020/02/01 10:26

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,9 @@
6
6
 
7
7
  URLは
8
8
 
9
+
10
+
9
- [https://qiita.com/nanasaki/items/50528f794e0598969e28]
11
+ [リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
10
12
 
11
13
  です。どのように改善すればよいか皆目見当がつきません。
12
14
 

2

リンクの挿入

2020/02/01 10:06

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  して人気ランキングを作るというものです。
6
6
 
7
+ URLは
8
+
7
- URLはhttps://qiita.com/nanasaki/items/50528f794e0598969e28
9
+ [https://qiita.com/nanasaki/items/50528f794e0598969e28]
8
10
 
9
11
  です。どのように改善すればよいか皆目見当がつきません。
10
12
 
@@ -154,9 +156,9 @@
154
156
 
155
157
 
156
158
 
157
- **補足情報**
158
159
 
159
160
 
161
+ **補足情報**
160
162
 
161
163
  hiragana_listとanime_titleとanime_ranking
162
164
 

1

助詞

2020/02/01 10:04

投稿

hirahashi
hirahashi

スコア30

test CHANGED
File without changes
test CHANGED
@@ -160,4 +160,4 @@
160
160
 
161
161
  hiragana_listとanime_titleとanime_ranking
162
162
 
163
- アンダーバーの前に波線がかかっております。
163
+ アンダーバーの前に波線がかかっております。