The code and tools used
Sample site source + Framework + book pdf+ Chapter code
Link: https://pan.baidu.com/s/1miHjIYk Password: af35
Environment
python2.7
Win7x64
Sample Site Setup
Wswp-places.zip in the book site source code
Frames used by the Web2py_src.zip site
1 Decompression Web2py_src.zip
2 then go to the Web2py/applications directory
3 Extract the Wswp-places.zip to the applications directory
4 return to the previous level directory, to the Web2py directory, double-click web2py.py, or execute command python web2py.py
If the admin password is set, the command Python web2py.py--password=<password> is used, and no password is set to default null
5 Browser Access Http://127.0.0.1:8000/places
The serious way in the book
Site source code hosted in Https://bitbucket.org/wswp/places
(When you register, you need to use your Google account.) Need to install Sourcetree)
Code uses WEB2PY frame to stand
This app relies on the web2py framework, which can was downloaded here and it documented here.
Http://web2py.com/init/default/download
Http://web2py.com/book
Installation steps
Text version for easy copying
In the shell the installation instructions is as follows:
# First Download web2py
wget Http://www.web2py.com/examples/static/web2py_src.zip
Unzip Web2py_src.zip
# now download the app
CD web2py/applications
HG Clone Ssh://[email Protected]/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 is accessed in your Web browser at http://127.0.0.1:8000/places
"Writing web crawler with Python" example site building (frame + book pdf+ Chapter code)