📜  Bs - Python 代码示例

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

代码示例1
import requests
from bs4 import BeautifulSoup

url = 'http://httpbin.org/xml'
response = requests.get(url)
soup = BeautifulSoup(response.content, 'lxml')
title = soup.select_one('title')