Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

requests to check is url exists in python using function

import requests
request = requests.get('http://www.example.com')
if request.status_code == 200:
    print('Web site exists')
else:
    print('Web site does not exist')
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #requests #check #url #exists #python #function
ADD COMMENT
Topic
Name
3+5 =