Scrapy Executor avatar
Scrapy Executor

Deprecated

Pricing

Pay per usage

Go to Store
Scrapy Executor

Scrapy Executor

Deprecated

Developed by

Apify

Apify

Maintained by Community

Run Scrapy spiders written in Python on the Apify platform.

0.0 (0)

Pricing

Pay per usage

1

Total users

190

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.

$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

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

$npm i -g apify-cli
$apify login

Other API clients include: