google-crawlers

Passing arguments to process.crawl in Scrapy python

Passing arguments to process.crawl in Scrapy python Question: I would like to get the same result as this command line : scrapy crawl linkedin_anonymous -a first=James -a last=Bond -o output.json My script is as follows : import scrapy from linkedin_anonymous_spider import LinkedInAnonymousSpider from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings spider = LinkedInAnonymousSpider(None, “James”, “Bond”) …

Total answers: 3