Last active
January 5, 2017 19:01
-
-
Save dmugtasimov/61f127134afccf9c89bac82323180194 to your computer and use it in GitHub Desktop.
Running spiders and parsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before any run | |
python manage.py register_spiders | |
python manage.py register_parsers | |
# Run every day | |
python manage.py run_spider trounceflow.spiders.impl.countries.hungary.spider.HungarySpider | |
python manage.py run_spider trounceflow.spiders.impl.countries.indonesia.spider.IndonesiaSpider | |
python manage.py run_spider trounceflow.spiders.impl.countries.mexico.spider.MexicoSpider | |
# Run twice a week: Tuesday and Friday | |
python manage.py run_spider trounceflow.spiders.impl.countries.turkey.spider.TurkeySpider | |
# Run every week | |
python manage.py run_spiders -t country -f | |
# After spiders run | |
python manage.py update_file_parse_queue -t country | |
python manage.py run_queued_parsers -t country |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment