import
requests
from
bs4
BeautifulSoup
#请求网页
url
=
'https://yuncode.net/list/python'
response
requests.get(url)
#解析网页
soup
BeautifulSoup(response.text,
'html.parser'
)
title
soup.find(
'title'
).text
print
(title)
初级程序员
by: 云代码会员 发表于:2022-12-10 21:45:51 顶(0) | 踩(0) 回复
小白学习一下
初级程序员
by: 云代码会员 发表于:2022-12-10 21:45:51 顶(0) | 踩(0) 回复
小白学习一下
回复评论