Skip to content

Commit f41db0a

Browse files
committed
8010 → 8011
1 parent 7fc1f2d commit f41db0a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Configuration
3636
zyte_smartproxy_apikey = 'apikey'
3737

3838

39-
* (optional) If you are not using the default Zyte Smart Proxy Manager proxy (``http://proxy.zyte.com:8010``),
39+
* (optional) If you are not using the default Zyte Smart Proxy Manager proxy (``http://proxy.zyte.com:8011``),
4040
for example if you have a dedicated or private instance,
4141
make sure to also set ``ZYTE_SMARTPROXY_URL`` in ``settings.py``, e.g.::
4242

docs/news.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ following backward-incompatible changes:
2121
- ``scrapy_crawlera`` is now ``scrapy_zyte_smartproxy``.
2222

2323
- ``CrawleraMiddleware`` is now ``ZyteSmartProxyMiddleware``, and its default
24-
``url`` is now ``http://proxy.zyte.com:8010``.
24+
``url`` is now ``http://proxy.zyte.com:8011``.
2525

2626
- Stat prefixes have switched from ``crawlera/`` to ``zyte_smartproxy/``.
2727

docs/settings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Unique Zyte Smart Proxy Manager API key provided for authentication.
1515
ZYTE_SMARTPROXY_URL
1616
-------------------
1717

18-
Default: ``'http://proxy.zyte.com:8010'``
18+
Default: ``'http://proxy.zyte.com:8011'``
1919

2020
Zyte Smart Proxy Manager instance URL, it varies depending on adquiring a private or dedicated instance. If Zyte Smart Proxy Manager didn't provide
2121
you with a private instance URL, you don't need to specify it.

scrapy_zyte_smartproxy/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class ZyteSmartProxyMiddleware(object):
1717

18-
url = 'http://proxy.zyte.com:8010'
18+
url = 'http://proxy.zyte.com:8011'
1919
maxbans = 400
2020
ban_code = 503
2121
download_timeout = 190

tests/test_all.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _assert_disabled(self, spider, settings=None):
8383

8484
def _assert_enabled(self, spider,
8585
settings=None,
86-
proxyurl='http://proxy.zyte.com:8010',
86+
proxyurl='http://proxy.zyte.com:8011',
8787
proxyauth=basic_auth_header('apikey', ''),
8888
maxbans=400,
8989
download_timeout=190):
@@ -177,23 +177,23 @@ def test_apikey(self):
177177

178178
def test_proxyurl(self):
179179
self.spider.zyte_smartproxy_enabled = True
180-
self.settings['ZYTE_SMARTPROXY_URL'] = 'http://localhost:8010'
181-
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8010')
180+
self.settings['ZYTE_SMARTPROXY_URL'] = 'http://localhost:8011'
181+
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8011')
182182

183183
def test_proxyurl_no_protocol(self):
184184
self.spider.zyte_smartproxy_enabled = True
185-
self.settings['ZYTE_SMARTPROXY_URL'] = 'localhost:8010'
186-
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8010')
185+
self.settings['ZYTE_SMARTPROXY_URL'] = 'localhost:8011'
186+
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8011')
187187

188188
def test_proxyurl_https(self):
189189
self.spider.zyte_smartproxy_enabled = True
190-
self.settings['ZYTE_SMARTPROXY_URL'] = 'https://localhost:8010'
191-
self._assert_enabled(self.spider, self.settings, proxyurl='https://localhost:8010')
190+
self.settings['ZYTE_SMARTPROXY_URL'] = 'https://localhost:8011'
191+
self._assert_enabled(self.spider, self.settings, proxyurl='https://localhost:8011')
192192

193193
def test_proxyurl_including_noconnect(self):
194194
self.spider.zyte_smartproxy_enabled = True
195-
self.settings['ZYTE_SMARTPROXY_URL'] = 'http://localhost:8010?noconnect'
196-
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8010?noconnect')
195+
self.settings['ZYTE_SMARTPROXY_URL'] = 'http://localhost:8011?noconnect'
196+
self._assert_enabled(self.spider, self.settings, proxyurl='http://localhost:8011?noconnect')
197197

198198
def test_maxbans(self):
199199
self.spider.zyte_smartproxy_enabled = True

0 commit comments

Comments
 (0)