import wget html = 'http://localhost:8080/jpress/commons/captcha?d=0.8233469537052793' wget.download(html,'demo_wget.png')