$ mkvirtualenv gifter -a /path/to/gifter/
To use this virtualenv:
$ workon gifter
Install dependencies:
$ pip install -e .
$ python -m textblob.download_corpora lite
Define your settings:
$ cd gifter
$ touch local_settings.py
# open local_settings.py and change it
# open ebay.yaml and set tokens/ID's
Note: Remember to set up passwords.
$ source ./scripts/setup_environ.sh
$ ./gifter/db/init_db.sh
- crawl_tweets
- crawl_suggested_tweets
- preprocess_suggested
- remove_preprocessed
- generate_ebay_category
- report
- stats
$ python gifter/recipient.py
$ ipython notebook .
$ cd /path/to/static
$ sudo apt-get install npm
$ npm install
$ npm install -g bower
$ npm install -g grunt-cli
$ cd /path/to/static
$ bower install
$ grunt serve
If there will be an error "/usr/bin/env: node: No such file or directory " then:
$ ln -s /usr/bin/nodejs /usr/bin/node
curl -X POST http://127.0.0.1:5000/api/items/PiotrRogulski/
curl -X POST http://127.0.0.1:5000/api/counter/ --data '{'url': http://www.ebay.pl/itm/Verruckter-Penis-Dildo-Lutscher-Lolli-Penislolli-Penislutscher-Dildololli-GAG-/141248827749', 'category_name': 'Fun', 'item_title': 'Verruckter-Penis-Dildo-Lutscher'}