Hi everyone,

I have already described my problem at stackoverflow, so it'd probably
be a good idea if you read my thread there first. Here you go:

http://stackoverflow.com/questions/10564389/django-custom-management-command-running-scrapy-how-to-include-scrapys-options

To quickly summarize my request:
I'd like to use the web crawler tool Scrapy from within a Django
project. The scraped items should be saved directly into a database.
For this purpose I have created a custom management command (see
thread at stackoverflow), so that I can e.g. do:

`python manage.py scrapy crawl domain.com`

However, the command does not accept Scrapy's command line options.
For instance, the following doesn't work:

`python manage.py scrapy crawl domain.com -o scraped_data.json -t
json`

So my question is: How to adopt not only Scrapy's commands, but also
its command line options? In which way do I have to configure the
existing custom management command to accomplish that?

Any idea? Thank you very much in advance!

Best,
Peter

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to