Answers for "python detect url"

0

python get url

import requests

URL = 'https://www.example.com'
page = requests.get(URL)
Posted by: Guest on June-03-2021
-1

python check if string is url

from django.core.validators import URLValidator()
validate = URLValidator()

try:
    validate("http://www.avalidurl.com/")
    print("String is a valid URL")
except ValidationError as exception:
    print("String is not valid URL")
Posted by: Guest on April-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language