diff --git a/scrapy/contrib/downloadermiddleware/__init__.py b/scrapy/contrib/downloadermiddleware/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/scrapy/contrib/downloadermiddleware/ajaxcrawl.py b/scrapy/contrib/downloadermiddleware/ajaxcrawl.py new file mode 100644 index 000000000..90ebc46b6 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/ajaxcrawl.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.ajaxcrawl` is deprecated, " + "use `scrapy.downloadermiddlewares.ajaxcrawl` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.ajaxcrawl import * diff --git a/scrapy/contrib/downloadermiddleware/chunked.py b/scrapy/contrib/downloadermiddleware/chunked.py new file mode 100644 index 000000000..1322c9083 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/chunked.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.chunked` is deprecated, " + "use `scrapy.downloadermiddlewares.chunked` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.chunked import * diff --git a/scrapy/contrib/downloadermiddleware/cookies.py b/scrapy/contrib/downloadermiddleware/cookies.py new file mode 100644 index 000000000..bad970690 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/cookies.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.cookies` is deprecated, " + "use `scrapy.downloadermiddlewares.cookies` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.cookies import * diff --git a/scrapy/contrib/downloadermiddleware/decompression.py b/scrapy/contrib/downloadermiddleware/decompression.py new file mode 100644 index 000000000..a541aa61e --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/decompression.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.decompression` is deprecated, " + "use `scrapy.downloadermiddlewares.decompression` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.decompression import * diff --git a/scrapy/contrib/downloadermiddleware/defaultheaders.py b/scrapy/contrib/downloadermiddleware/defaultheaders.py new file mode 100644 index 000000000..cf023dc8f --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/defaultheaders.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.defaultheaders` is deprecated, " + "use `scrapy.downloadermiddlewares.defaultheaders` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.defaultheaders import * diff --git a/scrapy/contrib/downloadermiddleware/downloadtimeout.py b/scrapy/contrib/downloadermiddleware/downloadtimeout.py new file mode 100644 index 000000000..84bd06acf --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/downloadtimeout.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.downloadtimeout` is deprecated, " + "use `scrapy.downloadermiddlewares.downloadtimeout` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.downloadtimeout import * diff --git a/scrapy/contrib/downloadermiddleware/httpauth.py b/scrapy/contrib/downloadermiddleware/httpauth.py new file mode 100644 index 000000000..a37ffa0dc --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/httpauth.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.httpauth` is deprecated, " + "use `scrapy.downloadermiddlewares.httpauth` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.httpauth import * diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.py new file mode 100644 index 000000000..f5f068204 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/httpcache.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.httpcache` is deprecated, " + "use `scrapy.downloadermiddlewares.httpcache` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.httpcache import * diff --git a/scrapy/contrib/downloadermiddleware/httpcompression.py b/scrapy/contrib/downloadermiddleware/httpcompression.py new file mode 100644 index 000000000..8a52ec50b --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/httpcompression.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.httpcompression` is deprecated, " + "use `scrapy.downloadermiddlewares.httpcompression` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.httpcompression import * diff --git a/scrapy/contrib/downloadermiddleware/httpproxy.py b/scrapy/contrib/downloadermiddleware/httpproxy.py new file mode 100644 index 000000000..d94d85076 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/httpproxy.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.httpproxy` is deprecated, " + "use `scrapy.downloadermiddlewares.httpproxy` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.httpproxy import * diff --git a/scrapy/contrib/downloadermiddleware/redirect.py b/scrapy/contrib/downloadermiddleware/redirect.py new file mode 100644 index 000000000..824eee8ae --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/redirect.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.redirect` is deprecated, " + "use `scrapy.downloadermiddlewares.redirect` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.redirect import * diff --git a/scrapy/contrib/downloadermiddleware/retry.py b/scrapy/contrib/downloadermiddleware/retry.py new file mode 100644 index 000000000..aafe0f508 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/retry.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.retry` is deprecated, " + "use `scrapy.downloadermiddlewares.retry` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.retry import * diff --git a/scrapy/contrib/downloadermiddleware/robotstxt.py b/scrapy/contrib/downloadermiddleware/robotstxt.py new file mode 100644 index 000000000..408f760a0 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/robotstxt.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.robotstxt` is deprecated, " + "use `scrapy.downloadermiddlewares.robotstxt` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.robotstxt import * diff --git a/scrapy/contrib/downloadermiddleware/stats.py b/scrapy/contrib/downloadermiddleware/stats.py new file mode 100644 index 000000000..fa84a8206 --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/stats.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.stats` is deprecated, " + "use `scrapy.downloadermiddlewares.stats` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.stats import * diff --git a/scrapy/contrib/downloadermiddleware/useragent.py b/scrapy/contrib/downloadermiddleware/useragent.py new file mode 100644 index 000000000..893d5241c --- /dev/null +++ b/scrapy/contrib/downloadermiddleware/useragent.py @@ -0,0 +1,7 @@ +import warnings +from scrapy.exceptions import ScrapyDeprecationWarning +warnings.warn("Module `scrapy.contrib.downloadermiddleware.useragent` is deprecated, " + "use `scrapy.downloadermiddlewares.useragent` instead", + ScrapyDeprecationWarning, stacklevel=2) + +from scrapy.downloadermiddlewares.useragent import *