1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-27 14:23:47 +00:00
scrapy/sep/sep-010.rst

71 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2014-03-06 17:48:39 -05:00
======= ===========================================
SEP 10
Title REST API
Author Pablo Hoffman
Created 2009-11-16
Status Obsolete (JSON-RPC API implemented instead)
======= ===========================================
=================
SEP-010: REST API
=================
This SEP proposes a JSON REST API for controlling Scrapy in server-mode, which
is launched with: ``scrapy-ctl.py start``
Operations
==========
Get list of available spiders
-----------------------------
``GET /spiders/all``
2014-03-06 17:48:39 -05:00
Get list of closed spiders
--------------------------
``GET /spiders/closed``
2014-03-06 17:48:39 -05:00
Get list of scheduled spiders
-----------------------------
``GET /spiders/scheduled``
2014-03-06 17:48:39 -05:00
.. note:: contains closed
Get list of running spiders
---------------------------
``GET /spiders/opened``
2014-03-06 17:48:39 -05:00
- returns list of dicts containing spider ``id`` and ``domain_name``
Schedule spider
---------------
``POST /spiders``
2014-03-06 17:48:39 -05:00
- args: ``schedule=example.com``
Close spider
------------
``POST /spider/1238/close``
2014-03-06 17:48:39 -05:00
Get global stats
----------------
``GET /stats``
2014-03-06 17:48:39 -05:00
.. note:: spider-specific not included
Get spider-specific stats
-------------------------
``GET /spider/1238/stats/``
2014-03-06 17:48:39 -05:00
Get engine status
-----------------
``GET /engine/status``