I want make a program to download jpg files (japanese comics) from some urls, I saw some examples around the web but they don't work in my case:
import urllib2
jpgfile = urllib2.urlopen("http://mangas2013.centraldemangas.com.br/attack_on_titan/attack_on_titan001-01.jpg")
output = open('attack_on_titan001-01.jpg','wb')
output.write(jpgfile.read())
output.close()
With this url I get a 28kb jpg file file (the original is 120kb), and when I try to open, the image doesn't appear on windows picture viewer... It's odd because I can download and view jpg files from other sites using the same code...
I'm a newbie in python, so try to give me the most simple answers possible.