Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add FAQ on making a blank request

Kevin Toms88285e75b6b7
diff --git a/docs/faq.rst b/docs/faq.rst
index 20dd814df..9df4490d4 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -405,6 +405,25 @@ 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
+
+ yield Request(
+ url="data:,",
+ callback=self.your_call_back,
+ )
+
+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>``
--------------------------------------------------------------------------