推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
zmrenwu
V2EX  ›  Python

有没有自动提取正文目录的第三方包?

  •  
  •   zmrenwu · Sep 7, 2016 · 2714 views
    This topic created in 3670 days ago, the information mentioned may be changed or developed.

    博客想要一个自动提取正文目录的功能,本着不重复造轮子的原则请教大家有没有相关的第三方包? python 的或者 js 的都可以。我的博客是基于 django 搭建的。

    2 replies  •  2016-09-08 09:51:46 +08:00
    zmrenwu
        1
    zmrenwu  
    OP
       Sep 7, 2016
    好吧,百度了很久终于看到这么一个项目: AutocJS ,国人开发的,可以一试。
    FallenMax
        2
    FallenMax  
       Sep 8, 2016
    我做了一个这样的 chrome 扩展(有同名 github ): https://chrome.google.com/webstore/detail/smart-toc/lifgeihcfpkmmlfjbailfpfhbahhibba

    中间包含一个简单的正文抽取算法和目录抽取算法。不过没有抽成专门用来提取目录的 lib 。可供参考。

    在博客里显示自己文章的目录,我记得有一个叫 Scrollspy 的插件可以用来做这个。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1017 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:30 · PVG 02:30 · LAX 11:30 · JFK 14:30
    ♥ Do have faith in what you're doing.