推荐学习书目
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
amlun
V2EX  ›  Python

得到一个站点的所有 url,如何反推出站点的路由规则

  •  
  •   amlun · Apr 7, 2016 · 3377 views
    This topic created in 3715 days ago, the information mentioned may be changed or developed.
    RT
    模式匹配?
    3 replies    2016-04-07 17:20:16 +08:00
    UnisandK
        1
    UnisandK  
       Apr 7, 2016
    自动总结规则?这是神经网络的范围了吧
    menc
        2
    menc  
       Apr 7, 2016
    通过后验概率判断先验概率,
    你想要知道的是:

    已知 http://aaa.com/a/b/c 的出现概率 是 P(x), 在 X 事件发生的前提下 http://aaa.com/a 是路由规则前缀的概率是多少, http://aaa.com/a/b 是前缀的概率是多少 http://aaa.com/a/b/c 是前缀的概率是多少,取概率最大,就是这个 URL 的路由前缀

    这个东西叫做朴素贝叶斯
    amlun
        3
    amlun  
    OP
       Apr 7, 2016
    另外可能还需要根据 URL 对应的页面内容作为判断依据。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:13 · PVG 06:13 · LAX 15:13 · JFK 18:13
    ♥ Do have faith in what you're doing.