标签: python-3.7
导入请求 从bs4导入BeautifulSoup
response = requests.get(“ https://stackoerflow.com/questions”) 汤= BeautifulSoup(response.text,“ html.parser”)
问题= soup.select(“。question-summary”) 打印(类型(问题[0]))