-
-
Save pije76/4971441 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Enable us to call scrapy from manage.py | |
from __future__ import absolute_import | |
from django.core.management.base import BaseCommand | |
class Command(BaseCommand): | |
def run_from_argv(self, argv): | |
self._argv = argv | |
self.execute() | |
def handle(self, *args, **options): | |
from scrapy.cmdline import execute | |
execute(self._argv[1:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment