I have scrapy pipelines.py and I want to get these arguments. In my spider.py it works fine:
class MySpider( CrawlSpider ): def __init__(self, host='', domain_id='', *args, **kwargs): super(MySpider, self).__init__(*args, **kwargs) print user_id ...
Now I need "user_id" in my pipelines.py to create a sqlite database such as "domain-123.db". I am browsing the entire network about my problem, but I can not find any solution.
Can someone help me?
PS: Yes, I tried the super () function inside my pipelines. A class like spyer.py, it does not work.
source share