📅  最后修改于: 2022-03-11 14:47:13.100000             🧑  作者: Mango
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')