質問編集履歴
1
error
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,2 +1,13 @@
|
|
1
1
|
Discord.pyで[xml](http://www3.nhk.or.jp/sokuho/jishin/data/JishinReport.xml) これを更新して出力させるbotを作りたいのですが xmlを読み込む方法 更新する方法がわかりません あと出力も
|
2
2
|
できれば教えていただけるとありがたいです
|
3
|
+
でたエラーコード
|
4
|
+
```error
|
5
|
+
Traceback (most recent call last):
|
6
|
+
File "main.py", line 85, in <module>
|
7
|
+
tree = ET.parse('http://www3.nhk.or.jp/sokuho/jishin/data/JishinReport.xml')
|
8
|
+
File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse
|
9
|
+
tree.parse(source, parser)
|
10
|
+
File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse
|
11
|
+
source = open(source, "rb")
|
12
|
+
FileNotFoundError: [Errno 2] No such file or directory: 'http://www3.nhk.or.jp/sokuho/jishin/data/JishinReport.xml'
|
13
|
+
```
|