Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.37 KB

README.md

File metadata and controls

50 lines (29 loc) · 1.37 KB

BASIC INSTRUCTIONS

brew install python (http://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz)

Requires wget or cURL .

cURL typically comes pre-installed.

For Mac use homebrew and one of:

brew install wget
brew install curl

Requires Python with lxml, requests, pystache, PIL, and ModestMaps.

Optionally set up virtualenv:

virtualenv --no-site-packages venv
source venv/bin/activate

Install libraries needed for fast XML processing and Python extensions. For Ubuntu/Linux:

apt-get install python-dev libxml2-dev libxslt1-dev

Install Python packages:

pip install -r requirements.txt

Running

python changewithin.py

Automating

Assuming the above installation, edit your cron table (crontab -e) to run the script once a day at 7:00am.

0 7 * * * ~/path/to/changewithin/bin/python ~/path/to/changewithin/changewithin.py

Might have to do these individually:

pip install requests pip install pystache pip install lxml pip install modestmaps --allow-unverified modestmaps