mirror of https://github.com/scrapy/scrapy.git
Small docs fixes. (#7598)
This commit is contained in:
parent
ad4549673b
commit
4cb049cb15
|
|
@ -267,6 +267,6 @@ You can also send multiple requests in parallel:
|
|||
responses = await asyncio.gather(*tasks)
|
||||
yield {
|
||||
"h1": response.css("h1::text").get(),
|
||||
"price": responses[0][1].css(".price::text").get(),
|
||||
"price2": responses[1][1].css(".color::text").get(),
|
||||
"price": responses[0].css(".price::text").get(),
|
||||
"price2": responses[1].css(".color::text").get(),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ The following stats are collected:
|
|||
(e.g. ``item_dropped_reasons_count/DropItem``).
|
||||
* ``response_received_count``: total number of HTTP responses received.
|
||||
|
||||
.. _topics-extensions-ref-telnetconsole:
|
||||
|
||||
Log Count extension
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
@ -159,6 +157,8 @@ Log Count extension
|
|||
|
||||
.. autoclass:: LogCount
|
||||
|
||||
.. _topics-extensions-ref-telnetconsole:
|
||||
|
||||
Telnet console extension
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -979,7 +979,7 @@ Response objects
|
|||
|
||||
A dictionary-like (:class:`scrapy.http.headers.Headers`) object which contains
|
||||
the response headers. Values can be accessed using
|
||||
:meth:`~scrapy.http.headers.Headers.get` to return the first header value with
|
||||
:meth:`~scrapy.http.headers.Headers.get` to return the last header value with
|
||||
the specified name or :meth:`~scrapy.http.headers.Headers.getlist` to return
|
||||
all header values with the specified name. For example, this call will give you
|
||||
all cookies in the headers::
|
||||
|
|
|
|||
|
|
@ -734,8 +734,7 @@ specific cipher that is not included in ``DEFAULT`` if a website requires it.
|
|||
|
||||
Handling of this setting needs to be implemented inside the :ref:`download
|
||||
handler <topics-download-handlers>`, so it's not guaranteed to be supported
|
||||
by all 3rd-party handlers. It's currently unsupported by
|
||||
:class:`~scrapy.core.downloader.handlers._httpx.HttpxDownloadHandler`.
|
||||
by all 3rd-party handlers.
|
||||
|
||||
.. setting:: DOWNLOAD_TLS_MAX_VERSION
|
||||
|
||||
|
|
|
|||
|
|
@ -94,8 +94,6 @@ convenience:
|
|||
+----------------+-------------------------------------------------------------------+
|
||||
| ``p`` | a shortcut to the :func:`pprint.pprint` function |
|
||||
+----------------+-------------------------------------------------------------------+
|
||||
| ``hpy`` | for memory debugging (see :ref:`topics-leaks`) |
|
||||
+----------------+-------------------------------------------------------------------+
|
||||
|
||||
Telnet console usage examples
|
||||
=============================
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ItemLoader(itemloaders.ItemLoader):
|
|||
:param item: The item instance to populate using subsequent calls to
|
||||
:meth:`~ItemLoader.add_xpath`, :meth:`~ItemLoader.add_css`,
|
||||
or :meth:`~ItemLoader.add_value`.
|
||||
:type item: scrapy.item.Item
|
||||
:type item: :ref:`item object <item-types>`
|
||||
|
||||
:param selector: The selector to extract data from, when using the
|
||||
:meth:`add_xpath`, :meth:`add_css`, :meth:`replace_xpath`, or
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ if TYPE_CHECKING:
|
|||
# running event loop.
|
||||
#
|
||||
# Side note: it should be possible to remove _request_deferred() by using
|
||||
# engine.download() instead of engine.schedule(), losing the usual stuff like
|
||||
# spider middlewares (none of which should be important).
|
||||
# engine.download_async() instead of engine.schedule(), losing the usual stuff
|
||||
# like spider middlewares (none of which should be important).
|
||||
#
|
||||
# Other architecture problems:
|
||||
# * scrapy.cmdline.execute() creates an AsyncCrawlerProcess instance which
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ def verify_installed_reactor(reactor_path: str) -> None:
|
|||
|
||||
|
||||
def verify_installed_asyncio_event_loop(loop_path: str) -> None:
|
||||
"""Raise :exc:`RuntimeError` if the even loop of the installed
|
||||
"""Raise :exc:`RuntimeError` if the event loop of the installed
|
||||
:class:`~twisted.internet.asyncioreactor.AsyncioSelectorReactor`
|
||||
does not match the specified import path or if no reactor is installed."""
|
||||
if not is_reactor_installed():
|
||||
|
|
|
|||
Loading…
Reference in New Issue