質問編集履歴

1

コード修正

2019/03/20 09:24

投稿

py_
py_

スコア10

test CHANGED
File without changes
test CHANGED
@@ -40,13 +40,13 @@
40
40
 
41
41
 
42
42
 
43
- url = "対象サイトにある画像のフルパス"
43
+ url = "https://www.city.miyazaki.miyazaki.jp/gyousei/html/reiki/H214902500027/778_0002.gif"
44
44
 
45
45
  request = Request(url)
46
46
 
47
47
  req = urlopen(request)
48
48
 
49
- with open("donwload_file.img", "wb") as f:
49
+ with open("download_file.gif", "wb") as f:
50
50
 
51
51
  f.write(req.read())
52
52