Skip to content

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

update documentation to recent pydispatcher import path change

Daniel Granad5d2c5c92415
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst
index f7b189944..62524658e 100644
--- a/docs/topics/extensions.rst
+++ b/docs/topics/extensions.rst
@@ -81,7 +81,7 @@ enabled.
Let's take a look at the following example extension which just logs a message
everytime a domain/spider is opened and closed::
- from pydispatch import dispatcher
+ from scrapy.xlib.pydispatch import dispatcher
from scrapy.core import signals
class SpiderOpenCloseLogging(object):
diff --git a/docs/topics/item-pipeline.rst b/docs/topics/item-pipeline.rst
index fbf67c3c5..6b97a0657 100644
--- a/docs/topics/item-pipeline.rst
+++ b/docs/topics/item-pipeline.rst
@@ -66,7 +66,7 @@ that were already processed. Let say that our items has an unique id, but our
spider returns multiples items with the same id::
- from pydispatch import dispatcher
+ from scrapy.xlib.pydispatch import dispatcher
from scrapy.core import signals
from scrapy.core.exceptions import DropItem
diff --git a/docs/topics/webconsole.rst b/docs/topics/webconsole.rst
index c525a121f..646439122 100644
--- a/docs/topics/webconsole.rst
+++ b/docs/topics/webconsole.rst
@@ -58,7 +58,7 @@ Example web console extension
Here's an example of a simple web console extension that just displays a "Hello
world!" text::
- from pydispatch import dispatcher
+ from scrapy.xlib.pydispatch import dispatcher
from scrapy.management.web import webconsole_discover_module
class HelloWorldConsole(object):