cleaners.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:tidy_page 作者: desion 项目源码 文件源码
def clean_tag(doc):
    for tag in doc.find_all(["style", "script","form", "textarea", "input", "iframe", "select","frame", "link"]):
        tag.extract()
    comments = doc.findAll(text=lambda text:isinstance(text, Comment))
    [comment.extract() for comment in comments]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号