分享

web2py.py

 戴维图书馆 2018-09-14
 

This repository contains the source code the example website used throughout the book Web Scraping with Python, published by Packt Publishing. This app is available live at example. but can also be run locally. When run locally the app will not block IP's that download faster than the thresholds specified in models/3_cache.db, which means you can test your crawler faster.

Install

This app relies on the web2py framework, which can be downloaded here and is documented here.

In the shell the installation instructions are as follows:

    # first download web2py
    wget http://www./examples/static/web2py_src.zip
    unzip web2py_src.zip
    # now download the app
    cd web2py/applications
    hg clone ssh://hg@/wswp/places
    # now start the web2py server with a password for the admin interface
    cd ..
    python web2py.py --password=<password>

The places app can now be accessed in your web browser at http://127.0.0.1:8000/places.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多