dezzyderr


SUBMITTED BY: dezzyderr

DATE: Oct. 9, 2022, 1:30 p.m.

FORMAT: Text only

SIZE: 265 Bytes

HITS: 561

  1. import requests
  2. import re
  3. while True:
  4. url = input("Enter the URL: ")
  5. if url == "":
  6. print("Invalid URL")
  7. continue
  8. break
  9. html = requests.get(url).text
  10. links = re.findall('"(https?://.*?)"', html)
  11. for link in links:

comments powered by Disqus