close

[Solved] No schema supplied and other s with using requests.get()

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error No schema supplied and other s with using requests.get() in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How No schema supplied and other s with using requests.get() Error Occurs?

Today I get the following error No schema supplied and other s with using requests.get() in python.

How To Solve No schema supplied and other s with using requests.get() Error ?

  1. How To Solve No schema supplied and other s with using requests.get() Error ?

    To Solve No schema supplied and other s with using requests.get() Error No schema means you haven't supplied the http:// or https:// supply these and it will do the trick.

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

    To Solve No schema supplied and other s with using requests.get() Error No schema means you haven't supplied the http:// or https:// supply these and it will do the trick.

Solution 1

change your comicUrl to this

comicUrl = comicElem[0].get('src').strip("http://")
comicUrl="http://"+comicUrl
if 'xkcd' not in comicUrl:
    comicUrl=comicUrl[:7]+'xkcd.com/'+comicUrl[7:]

print "comic url",comicUrl

Solution 2

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':

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read