#!/usr/bin/env python
from remedy.radremedy import create_app
from remedy.bootstrap import strap
import os

application, manager = (None, None)

if os.environ.get('RAD_PRODUCTION'):
    print('Running production configuration')
    application, manager = create_app('remedy.config.ProductionConfig')

else:
    print('Running development configuration')
    application, manager = create_app('remedy.config.DevelopmentConfig')


@manager.command
def bootstrap():
    strap(application)

if __name__ == '__main__':

    manager.run()


#!/usr/bin/env python
from remedy.radremedy import create_app
from remedy.bootstrap import strap
from remedy.get_save_data import run

import os

application, manager = (None, None)

if os.environ.get('RAD_PRODUCTION'):
    print('Running production configuration')
    application, manager = create_app('remedy.config.ProductionConfig')

else:
    print('Running development configuration')
    application, manager = create_app('remedy.config.DevelopmentConfig')


@manager.command
def bootstrap():
    strap(application)


@manager.command
def scrape():
    run(application)

if __name__ == '__main__':

    manager.run()


Add a scraping command