如何利用python的beautifulsoup爬取百度百科上的特定内容

2024-11-25 02:10:34
推荐回答(1个)
回答1:

improt request

improt re
response = request.get('地址')
s = re.findall('"para-title level-2"(.*?)"pa',ressponse.text)