How to reset Scrapy parameters? (always running under same parameters)
Posted
by
Jean Ventura
on Stack Overflow
See other posts from Stack Overflow
or by Jean Ventura
Published on 2013-10-30T17:24:57Z
Indexed on
2013/10/30
21:54 UTC
Read the original article
Hit count: 256
I've been running my Scrapy project with a couple of accounts (the project scrapes a especific site that requieres login credentials), but no matter the parameters I set, it always runs with the same ones (same credentials).
I'm running under virtualenv. Is there a variable or setting I'm missing?
Edit:
It seems that this problem is Twisted related.
Even when I run:
scrapy crawl -a user='user' -a password='pass' -o items.json -t json SpiderName
I still get an error saying:
ERROR: twisted.internet.error.ReactorNotRestartable
And all the information I get, is the last 'succesful' run of the spider.
© Stack Overflow or respective owner