• 技术文章 >头条

    Github上点赞最多的10个Python项目(2020年3月)

    月亮邮递员月亮邮递员2020-03-26 10:34:22转载8688

    1、awesome-python-webapp

    Star 1.9k Watch 223 Fork 1.7k 中文
    廖老师的 Python 入门教程中的实践项目的代码,教程在线阅读

    2、Minos

    Star 666 Watch 46 Fork 190 中文
    一个基于 Tornado/MongoDB/Redis 的社区系统

    推荐学习《Python教程

    3、tushare

    Star 9.1k Watch 962 Fork 3.6k 中文
    TuShare 是一个免费、开源的 Python 财经数据接口包,TuShare 文档

    TuShare-min.png

    4、beijing_bus

    Star 314 Watch 28 Fork 68 中文
    北京实时公交,可以显示查询的公交到达某站还需多久

    beijing_bus.gif

    5、luokr.com

    Star 262 Watch 24 Fork 120 中文
    Python Tornado 写的开源网站——螺壳网,访问,如图:

    luokr-com.png

    6、ssbc

    Star 1.3k Watch 78 Fork 770 中文
    Python Django 写的种子搜索网站——手撕包菜,如图:

    ssbc.png

    7、python-gems

    Star 510 Watch 27 Fork 132
    有趣的 Pyhton 代码片段集合

    8、algorithm

    Star 2.7k Watch 231 Fork 955 中文
    老齐的 Python 算法教程

    9、python-goose

    Star 3.5k Watch 197 Fork 751 中文
    Goose 用于文章提取器,提取中文内容的示例代码:

    >>> from goose import Goose
    >>> from goose.text import StopWordsChinese
    >>> url  = 'http://www.bbc.co.uk/zhongwen/simp/chinese_news/2012/12/121210_hongkong_politics.shtml'
    >>> g = Goose({'stopwords_class': StopWordsChinese})
    >>> article = g.extract(url=url)
    >>> print article.cleaned_text[:150]
    香港行政长官梁振英在各方压力下就其大宅的违章建筑(僭建)问题到立法会接受质询,并向香港民众道歉。
    
    梁振英在星期二(12月10日)的答问大会开始之际在其演说中道歉,但强调他在违章建筑问题上没有隐瞒的意图和动机。
    
    一些亲北京阵营议员欢迎梁振英道歉,且认为应能获得香港民众接受,但这些议员也质问梁振英有

    10、mincss

    Star 848 Watch 44 Fork 82
    Python 写的用来找到 CSS 中没有用到的代码片段,并删除。适用于:想要做一个页面,但是不会写 CSS 人。示例代码如下:

    #coding:utf-8
    #!/usr/bin/env python
    from __future__ import print_function
    import sys, os
    sys.path.insert(0, os.path.abspath('.'))
    from mincss.processor import Processor
    
    # 这里改成想要参考的页面
    URL = 'http://localhost:9000/page.html'
    
    def run():
        p = Processor()
        p.process(URL)
    
        # 输出INlink的css的简化前和简化后的css代码
        print("INLINES ".ljust(79, '-'))
        for each in p.inlines:
            print("On line %s" % each.line)
            print('- ' * 40)
            print("BEFORE")
            print(each.before)
            print('- ' * 40)
            print("AFTER:")
            print(each.after)
    
        # 输出link引用的css的简化前和简化后的css代码
        print("LINKS ".ljust(79, '-'))
        for each in p.links:
            print("On href %s" % each.href)
            print('- ' * 40)
            print("BEFORE")
            print(each.before)
            print('- ' * 40)
            print("AFTER:")
            print(each.after)
    
    if __name__ == '__main__':
        run()

    本文转载自:https://www.hellogithub.com/periodical/category/Python%20%E9%A1%B9%E7%9B%AE/

    专题推荐:github 点赞最多 开源项目
    上一篇:一行命令给你的头像自动戴上口罩 下一篇:最新数据库排行榜(2020年4月)

    相关文章推荐

    • python如何模拟登录Github• Github上值得推荐的Python工具

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网