
Scrapy Executor
Pricing
Pay per usage
Go to Apify Store

Scrapy Executor
DeprecatedRun Scrapy spiders written in Python on the Apify platform.
0.0 (0)
Pricing
Pay per usage
1
190
1
Last modified
2 years ago
Pricing
Pay per usage
Run Scrapy spiders written in Python on the Apify platform.
0.0 (0)
Pricing
Pay per usage
1
190
1
Last modified
2 years ago
You can access the Scrapy Executor programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
$echo '{< "scrapyCode": "import scrapy\\nimport apify\\n \\nclass MySpider(scrapy.Spider):\\n \\tname = '\''apifySpider'\''\\n \\n \\tdef start_requests(self):\\n \\t\\turls = [\\n \\t\\t\\t'\''https://apify.com'\'',\\n \\t\\t\\t'\''https://apify.com/store'\'',\\n \\t\\t]\\n \\t\\tfor url in urls:\\n \\t\\t\\tyield scrapy.Request(url=url, callback=self.parse)\\n \\n \\tdef parse(self, response):\\n \\t\\turl = response.url\\n \\t\\ttitle = response.css('\''title::text'\'').get()\\n \\t\\toutput = {\\n \\t\\t\\t'\''url'\'': url,\\n \\t\\t\\t'\''title'\'': title\\n \\t\\t}\\n \\t\\tapify.pushData(output)"<}' |<apify call apify/scrapy-executor --silent --output-dataset
The Apify CLI is the official tool that allows you to use Scrapy Executor locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
$npm i -g apify-cli$apify login
Other API clients include: