Created
April 28, 2017 16:18
-
-
Save addisaden/fe76eb3400b082311e94619194b26b1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install requests | |
import requests | |
import sys | |
import re | |
url = 'https://guard-tec.de/' | |
r = requests.get(url) | |
if not r.ok: | |
print("Konnte URL nicht aufrufen") | |
sys.exit(1) | |
for link in re.findall('https?:\/\/[^"\'\s]+', str(r.content, encoding='UTF-8')): | |
print(link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment