Reference¶
okscraper_django.management.commands.okscrape¶
-
class
okscraper_django.management.commands.okscrape.Command¶ okscrape management command - runs a scrpaer
Usage:
python manage.py okscrape MODULE_NAME [CLASS_NAME] [--dblog] [ARGS].. MODULE_NAME is a module name inside your django project. CLASS_NAME is a name of the scraper class inside the module you wish to run. If it is not provided, will look for a MainScraper class to run. --dblog option should be passed when running from cron - when it is passed the logs will be written to database instead of standard output. ARGS are extra arguments that will be passed to the scraper