How to make a request to a web page and get the status code in Python

1 Answer

0 votes
import requests 

url = requests.get("https://www.seek4info.com")

print(url.status_code)



   
   
'''
run:
   
200
   
'''

 



answered Apr 15, 2021 by avibootz

Related questions

1 answer 180 views
180 views asked Sep 13, 2019 by avibootz
3 answers 384 views
1 answer 140 views
...