Discord.pyでxml これを更新して出力させるbotを作りたいのですが xmlを読み込む方法 更新する方法がわかりません あと出力も
できれば教えていただけるとありがたいです
でたエラーコード
error
1Traceback (most recent call last): 2 File "main.py", line 85, in <module> 3 tree = ET.parse('http://www3.nhk.or.jp/sokuho/jishin/data/JishinReport.xml') 4 File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse 5 tree.parse(source, parser) 6 File "/usr/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse 7 source = open(source, "rb") 8FileNotFoundError: [Errno 2] No such file or directory: 'http://www3.nhk.or.jp/sokuho/jishin/data/JishinReport.xml'
回答1件
あなたの回答
tips
プレビュー