No schema supplied and other errors with using requests.get()

后端 未结 5 1127
情深已故
情深已故 2020-12-09 10:05

I\'m learning Python by following Automate the Boring Stuff. This program is supposed to go to http://xkcd.com/ and download all the images for offline viewing.

I\'

5条回答
  •  醉话见心
    2020-12-09 10:40

    No schema means you haven't supplied the http:// or https:// supply these and it will do the trick.

    Edit: Look at this URL string!:

    URL '//imgs.xkcd.com/comics/the_martian.png':

提交回复
热议问题