本文仅供学习交流使用,如侵立删!demo下载见文末 |
readability 安装
pip install readability-lxml
PS:readability有两个版本一个readability,一个readability-lxml注意不要装错。
readability 提取网页标题
from readability import Document
import requests
url = "https://blog.csdn.net/qq_38154948/article/details/116179011"
response = requests.get(url)
response