bash pip install spiff python from spiff import Spiff python import requests url = "https://example.com" response = requests.get(url) html_content = response.content python spiff = Spiff(html_content) python import requests from spiff import Spiff url = "https://example.com" response = requests.get(url) html_content = response.content spiff = Spiff(html_content) title = spiff.find("h1").text() links = [a.attr("href") for a in spiff.find_all("a")]


上一篇:
下一篇:
切换中文