Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get response from url

import requests
r = requests.get("https://google.com")
print(r.status_code)
#100- 199 Informational
#200-299 Succes
#300-399 Redirection
#400-499 CLIENT ERROR 
#500-599 SERVER ERROR
 
PREVIOUS NEXT
Tagged: #python #response #url
ADD COMMENT
Topic
Name
1+9 =