Docy

Python Request_library Explanation

Estimated reading: 1 minute 844 views

python requests

it will take the parameter as URL.

it will give the contents of the page.

and as well as if contents are takeable it will return code as 200 (Which is success)

if not it will return 404 (which is error).

				
					import requests

URL = "https://realpython.github.io/fake-jobs/"

page = requests.get(URL)

print(page)
				
			

Leave a Comment

Share this Doc
CONTENTS