Scrapy Executor avatar
Scrapy Executor

Deprecated

Pricing

Pay per usage

Go to Store
Scrapy Executor

Scrapy Executor

Deprecated

Developed by

Apify

Maintained by Community

Run Scrapy spiders written in Python on the Apify platform.

0.0 (0)

Pricing

Pay per usage

1

Monthly users

2

Runs succeeded

>99%

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.

1echo '{
2  "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)"
3}' |
4apify call apify/scrapy-executor --silent --output-dataset

Scrapy Executor API through CLI

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

1npm i -g apify-cli
2apify login

Other API clients include:

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.