📜  查找站点 python 代码示例中的所有文本

📅  最后修改于: 2022-03-11 14:45:23.253000             🧑  作者: Mango

代码示例1
import requests
from bs4 import BeautifulSoup

a_website = requests.get("Your URL")
a_soup = BeautifulSoup(a_website)
website_text = a_soup.findAll(text = True)

print(website_text)