import requests import re # get url url = input('Enter a URL (include `http://`): ') # connect to the url website = requests.get(url) # read html html = website.text # use re.findall to grab all the links links = re.findall('"((http|ftp)s?://.*?)"', html) # output links for link in links: print(link[0])
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....