質問編集履歴
3
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,9 @@
|
|
14
14
|
|
15
15
|
コードは下記の通りです
|
16
16
|
|
17
|
+
```
|
18
|
+
|
17
|
-
|
19
|
+
import urllib.request
|
18
20
|
|
19
21
|
from bs4 import BeautifulSoup
|
20
22
|
|
2
エラー画像・ファイル名追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,9 @@
|
|
57
57
|
Scraper(news).scrape()
|
58
58
|
|
59
59
|
```
|
60
|
+
|
61
|
+
![エラー画像](4eb32f305ec172b08aacd68a140d5292.jpeg)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
ファイル名は「sctst.py」です
|
1
本文追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
何が問題となっているのでしょうか?
|
6
6
|
|
7
7
|
「C:\Users\ユーザー名\AppData\Local\Programs\Python\Python36-32\python.exe:Error while finding module specification for 'ファイル名.py'(AttributeError:module'ファイル名'has no attribute '__path__')」
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
ファイル名が他のモジュール等の名前と被らないようにはしているつもりです。
|
8
12
|
|
9
13
|
|
10
14
|
|