Downloading a picture via urllib and python

后端 未结 18 1572
离开以前
离开以前 2020-11-22 10:35

So I\'m trying to make a Python script that downloads webcomics and puts them in a folder on my desktop. I\'ve found a few similar programs on here that do something simila

18条回答
  •  轮回少年
    2020-11-22 11:09

    Another way to do this is via the fastai library. This worked like a charm for me. I was facing a SSL: CERTIFICATE_VERIFY_FAILED Error using urlretrieve so I tried that.

    url = 'https://www.linkdoesntexist.com/lennon.jpg'
    fastai.core.download_url(url,'image1.jpg', show_progress=False)
    

提交回复
热议问题