Generation

generate functionWed, 21 Dec 2022

https://www.quackit.com/html/html_generators/html_code_generator.cfm このサイトに含まれるURLをすべて取得する

import re import requests def get_urls(text): return re.findall("https?://.+?/", text) def main(url): res = requests.get(url) urls = get_urls(res.text) for url in urls: print(url) if __name__ == '__main__': main("https://www.quackit.com/html/html_generators/html_code_generator.cfm")

Questions about programming?Chat with your personal AI assistant