deploy.rst 2.2 KB
Newer Older
1
.. _topics-deploy:
2

3 4 5
=================
Deploying Spiders
=================
6

7 8 9 10
This section describes the different options you have for deploying your Scrapy
spiders to run them on a regular basis. Running Scrapy spiders in your local
machine is very convenient for the (early) development stage, but not so much
when you need to execute long-running spiders or move spiders to run in
S
smirecki 已提交
11
production continuously. This is where the solutions for deploying Scrapy
12
spiders come in.
13

M
Mikhail Korobov 已提交
14
Popular choices for deploying Scrapy spiders are:
15

M
Mikhail Korobov 已提交
16 17
* :ref:`Scrapyd <deploy-scrapyd>` (open source)
* :ref:`Scrapy Cloud <deploy-scrapy-cloud>` (cloud-based)
18 19

.. _deploy-scrapyd:
20 21 22 23

Deploying to a Scrapyd Server
=============================

M
Mikhail Korobov 已提交
24 25
`Scrapyd`_ is an open source application to run Scrapy spiders. It provides
a server with HTTP API, capable of running and monitoring Scrapy spiders.
26

M
Mikhail Korobov 已提交
27 28 29
To deploy spiders to Scrapyd, you can use the scrapyd-deploy tool provided by
the `scrapyd-client`_ package. Please refer to the `scrapyd-deploy
documentation`_ for more information.
30

M
Mikhail Korobov 已提交
31
Scrapyd is maintained by some of the Scrapy developers.
32

M
Mikhail Korobov 已提交
33
.. _deploy-scrapy-cloud:
34

M
Mikhail Korobov 已提交
35 36
Deploying to Scrapy Cloud
=========================
37

M
Mikhail Korobov 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50
`Scrapy Cloud`_ is a hosted, cloud-based service by `Scrapinghub`_,
the company behind Scrapy.

Scrapy Cloud removes the need to setup and monitor servers
and provides a nice UI to manage spiders and review scraped items,
logs and stats.

To deploy spiders to Scrapy Cloud you can use the `shub`_ command line tool.
Please refer to the `Scrapy Cloud documentation`_ for more information.

Scrapy Cloud is compatible with Scrapyd and one can switch between
them as needed - the configuration is read from the ``scrapy.cfg`` file
just like ``scrapyd-deploy``.
51

52
.. _Scrapyd: https://github.com/scrapy/scrapyd
53
.. _Deploying your project: https://scrapyd.readthedocs.io/en/latest/deploy.html
54 55 56
.. _Scrapy Cloud: http://scrapinghub.com/scrapy-cloud/
.. _scrapyd-client: https://github.com/scrapy/scrapyd-client
.. _shub: http://doc.scrapinghub.com/shub.html
57
.. _scrapyd-deploy documentation: https://scrapyd.readthedocs.io/en/latest/deploy.html
58 59
.. _Scrapy Cloud documentation: http://doc.scrapinghub.com/scrapy-cloud.html
.. _Scrapinghub: http://scrapinghub.com/