Skip to content

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

scrapy/linkextractor.py shim

Julia Medina32945242ae23
diff --git a/conftest.py b/conftest.py
index 3a8bebd39..5e7090199 100644
--- a/conftest.py
+++ b/conftest.py
@@ -17,6 +17,7 @@ collect_ignore = [
"scrapy/log.py",
"scrapy/dupefilter.py",
"scrapy/command.py",
+ "scrapy/linkextractor.py",
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp")
diff --git a/scrapy/linkextractor.py b/scrapy/linkextractor.py
new file mode 100644
index 000000000..b744aff8e
--- /dev/null
+++ b/scrapy/linkextractor.py
@@ -0,0 +1,7 @@
+import warnings
+from scrapy.exceptions import ScrapyDeprecationWarning
+warnings.warn("Module `scrapy.linkextractor` is deprecated, "
+ "use `scrapy.linkextractors` instead",
+ ScrapyDeprecationWarning, stacklevel=2)
+
+from scrapy.linkextractors import *