A simple web application to re-preview the curator API
Create the virtual environment
virtualenv-2.7 --no-site-package venv
Install the dependency
source venv/bin/activate
pip install -r requirements.txt
Create and update production environment
cp collector/configs/production.py.sample collector/configs/production.py
Create the database
python manager.py createdb
Enable archive mode
echo "ARCHIVE=True" >> collector/configs/production.py # need restart web application
- Go to https://www.dropbox.com/developers
- Click App Console and create new app
- Select Dropbox API app (Files and datastores, Yes)
- Enter the App name
- Add the callback url
Install from brew
brew install redis
Start it
redis-server /usr/local/etc/redis.conf
Web
python manager.py runserver
Task
python manager.py runtask -n [celery | beat | all]
All
python manager.py fill -t [stream | today | todaydetail]
Latest
python manager.py latest -t [stream | today | todaydetail]
Repair
python manager.py repair -n [streamimage | todayimage | todaydetailimage]
List (Output all url into static/echolist.TABLE.txt
from TABLE.result_image field)
python manager.py echolist -t [stream | today | todaydetail]
Download (Using the aria2c
to download the EchoList into static/download/aria2c/TABLE
)
python manager.py downloadlist -t [stream | today | todaydetail]
Remove (Remove the not exists record in TABLE by checking downloaded image)
python manager.py removemisslist -t [stream | today | todaydetail]