📜  beautifulsoup 和 requesrs - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:37.799000             🧑  作者: Mango

代码示例1
from bs4 import BeautifulSoup
import requests

page = requests.get('https://www.timeanddate.com/worldclock/vietnam/hanoi')
soup = BeautifulSoup(page.text, 'html.parser')

soup.find_all(id='qlook')[0].find_all(id='ct')[0]