A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
| /* | |
| glog-example | |
| ------------ | |
| background | |
| --- | |
| You probably want to read the source code comments at the top of the glog.go file in | |
| the golang/glog repository on github.com. Located here: https://github.com/golang/glog/blob/master/glog.go | |
| setup |
| echo 'Formatting the code base...' | |
| godep go fmt $(go list ./... | grep -v /vendor/) | |
| echo 'Optimizing the imports...' | |
| goimports -w $(go list -f {{.Dir}} ./... | grep -v /vendor/) | |
| echo 'Installing dependencies. This might take some time...' | |
| godep go install $(go list ./... | grep -v /vendor/) | |
| echo "Executing test" |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| 豆瓣租房爬虫 | |
| Install: | |
| pip install beautifulsoup4 | |
| Usage: |