Skip to content

Commit 660b658

Browse files
committed
redo proxy changes
1 parent e1b60c7 commit 660b658

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/apify/scrapy/middlewares/apify_proxy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ async def process_request(self, request: Request, spider: Spider) -> None:
7878
Raises:
7979
ValueError: If username and password are not provided in the proxy URL.
8080
"""
81-
# Do not use proxy for robots.txt, as it causes 403 Forbidden.
82-
if request.url.endswith('/robots.txt'):
83-
request.meta.pop('proxy', None)
84-
return
85-
8681
Actor.log.debug(f'ApifyHttpProxyMiddleware.process_request: request={request}, spider={spider}')
8782
url = await self._get_new_proxy_url()
8883

0 commit comments

Comments
 (0)