Advertisement

网页正文字体识别与提取算法处理网络正文字体的实践

阅读量:

Goose安装指南

复制代码
    pip install goose-extractor
    
    
      
    
复制代码
    pip3 install goose
    
    
      
    

github:https://github.com/grangier/python-goose

简单实例分析

复制代码
    :python3
    Python 3.7.6 (default, Feb 16 2020, 17:48:02) 
    [Clang 8.0.0 (clang-800.0.42.1)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from goose3 import Goose
    >>> from goose3.text import StopWordsChinese
    >>> g = Goose({'stopwords_class': StopWordsChinese})
    >>> url = ''
    >>> print(article.title)
    The Serenity Prayer_LU_Z

全部评论 (0)

还没有任何评论哟~