mirror of https://github.com/scrapy/scrapy.git
Merge remote-tracking branch 'upstream/master' into cancel-request-download
This commit is contained in:
commit
634ad5ebca
|
|
@ -167,11 +167,13 @@ method and how to clean up the resources properly.::
|
||||||
Take screenshot of item
|
Take screenshot of item
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
This example demonstrates how to return a
|
This example demonstrates how to use :doc:`coroutine syntax <coroutines>` in
|
||||||
:class:`~twisted.internet.defer.Deferred` from the :meth:`process_item` method.
|
the :meth:`process_item` method.
|
||||||
It uses Splash_ to render screenshot of item url. Pipeline
|
|
||||||
makes request to locally running instance of Splash_. After request is downloaded,
|
This item pipeline makes a request to a locally-running instance of Splash_ to
|
||||||
it saves the screenshot to a file and adds filename to the item.
|
render a screenshot of the item URL. After the request response is downloaded,
|
||||||
|
the item pipeline saves the screenshot to a file and adds the filename to the
|
||||||
|
item.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
jmespath
|
jmespath
|
||||||
mitmproxy; python_version >= '3.6'
|
mitmproxy; python_version >= '3.6'
|
||||||
mitmproxy<4.0.0; python_version < '3.6'
|
mitmproxy<4.0.0; python_version < '3.6'
|
||||||
pytest < 5.4
|
# https://github.com/pytest-dev/pytest-twisted/issues/93
|
||||||
|
pytest != 5.4, != 5.4.1
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-twisted >= 1.11
|
pytest-twisted >= 1.11
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue