Skip to content

Commit

Permalink
Merge pull request #6208 from kevintomsgithub/add-faq
Browse files Browse the repository at this point in the history
Add FAQ on making a blank request
  • Loading branch information
wRAR committed Jan 18, 2024
2 parents d5233bb + 9074c16 commit 4229048
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,23 @@ or :class:`~scrapy.signals.headers_received` signals and raising a
:ref:`topics-stop-response-download` topic for additional information and examples.


.. _faq-blank-request:

How can I make a blank request?
-------------------------------

.. code-block:: python
from scrapy import Request
blank_request = Request("data:,")
In this case, the URL is set to a data URI scheme. Data URLs allow you to include data
in-line in web pages as if they were external resources. The "data:" scheme with an empty
content (",") essentially creates a request to a data URL without any specific content.


Running ``runspider`` I get ``error: No spider found in file: <filename>``
--------------------------------------------------------------------------

Expand Down

0 comments on commit 4229048

Please sign in to comment.