質問編集履歴

5

文章の更新

2019/06/24 12:16

投稿

shintalot
shintalot

スコア18

test CHANGED
@@ -1 +1 @@
1
- PythonでRSSのフィードのデータがターミナルに表示されない
1
+ PythonでRSSのデータが表示されない
test CHANGED
File without changes

4

文章の修正

2019/06/24 12:16

投稿

shintalot
shintalot

スコア18

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,4 @@
1
1
  PythonでRSSのフィードのデータがターミナルに表示されません。
2
-
3
-
4
-
5
- 参考にしているのは、TechAcademyさんのサイトです。
6
-
7
- [https://techacademy.jp/magazine/19148](https://techacademy.jp/magazine/19148)
8
2
 
9
3
 
10
4
 

3

不要点を削除

2019/06/24 12:14

投稿

shintalot
shintalot

スコア18

test CHANGED
File without changes
test CHANGED
@@ -32,18 +32,6 @@
32
32
 
33
33
 
34
34
 
35
- ### その他
36
-
37
- pipを使用してfeedparserのインストールも完了しています。
38
-
39
- (pipのヴァージョンが古いという警告は出ていましたが関係あるでしょうか?)
40
-
41
-
42
-
43
- よろしくお願いします。
44
-
45
-
46
-
47
35
  ### 動作確認でもエラーが出ていました
48
36
 
49
37
  >>> import feedparser

2

リンクの挿入

2019/06/23 13:57

投稿

shintalot
shintalot

スコア18

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  参考にしているのは、TechAcademyさんのサイトです。
6
6
 
7
- https://techacademy.jp/magazine/19148
7
+ [https://techacademy.jp/magazine/19148](https://techacademy.jp/magazine/19148)
8
8
 
9
9
 
10
10
 

1

動作確認時のエラー追記

2019/06/23 13:45

投稿

shintalot
shintalot

スコア18

test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,29 @@
41
41
 
42
42
 
43
43
  よろしくお願いします。
44
+
45
+
46
+
47
+ ### 動作確認でもエラーが出ていました
48
+
49
+ >>> import feedparser
50
+
51
+ >>> d = feedparser.parse('https://news.yahoo.co.jp/pickup/rss.xml')
52
+
53
+ >>> d['feed']['title']
54
+
55
+ Traceback (most recent call last):
56
+
57
+ File "<stdin>", line 1, in <module>
58
+
59
+ File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/feedparser.py", line 356, in __getitem__
60
+
61
+ return dict.__getitem__(self, key)
62
+
63
+ KeyError: 'title'
64
+
65
+
66
+
67
+ こんなエラーが出てしまっていました。これが悪さをしている気がしますが原因がわかりません。
68
+
69
+ よろしくお願いします。