apify 2.0.0b9__py3-none-any.whl → 2.0.0b11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of apify might be problematic. Click here for more details.

@@ -93,7 +93,7 @@ class ApifyHttpProxyMiddleware:
93
93
  request: Request,
94
94
  exception: Exception,
95
95
  spider: Spider,
96
- ) -> None | Request:
96
+ ) -> None:
97
97
  """Process an exception that occurs during request processing.
98
98
 
99
99
  Args:
@@ -102,8 +102,9 @@ class ApifyHttpProxyMiddleware:
102
102
  spider: Scrapy Spider object.
103
103
 
104
104
  Returns:
105
- If a TunnelError occurs, return the request object to halt its processing in the middleware pipeline.
106
- Return None otherwise to allow the continuation of request processing.
105
+ Returning None, meaning Scrapy will continue processing this exception, executing any other
106
+ process_exception() methods of installed middleware, until no middleware is left and the default
107
+ exception handling kicks in.
107
108
  """
108
109
  Actor.log.debug(
109
110
  f'ApifyHttpProxyMiddleware.process_exception: request={request}, exception={exception}, spider={spider}',
@@ -114,9 +115,6 @@ class ApifyHttpProxyMiddleware:
114
115
  f'ApifyHttpProxyMiddleware: TunnelError occurred for request="{request}", '
115
116
  'reason="{exception}", skipping...'
116
117
  )
117
- return request
118
-
119
- return None
120
118
 
121
119
  async def _get_new_proxy_url(self: ApifyHttpProxyMiddleware) -> ParseResult:
122
120
  """Get a new proxy URL.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apify
3
- Version: 2.0.0b9
3
+ Version: 2.0.0b11
4
4
  Summary: Apify SDK for Python
5
5
  License: Apache-2.0
6
6
  Keywords: apify,sdk,automation,chrome,crawlee,crawler,headless,scraper,scraping
@@ -20,7 +20,7 @@ apify/log.py,sha256=Shns441HqiMC9FDdtmftgQmnJWQL3DAKHBRA0E7lbdQ,390
20
20
  apify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  apify/scrapy/__init__.py,sha256=qDPV_zTRFaUqoFOyS5g4uBfz-UCkmWYJ82VXQ_3Cw6k,348
22
22
  apify/scrapy/middlewares/__init__.py,sha256=tfW-d3WFWLeNEjL8fTmon6NwgD-OXx1Bw2fBdU-wPy4,114
23
- apify/scrapy/middlewares/apify_proxy.py,sha256=6iUmbg40vX5bGoBr88hi3VdaAUUeJT9qbPHCfJjC5Kw,5838
23
+ apify/scrapy/middlewares/apify_proxy.py,sha256=_1WO7NKHxIcPf8mSNjsqANTEsx7ygMTuRQW9fbwKMO8,5837
24
24
  apify/scrapy/middlewares/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  apify/scrapy/pipelines/__init__.py,sha256=GWPeLN_Zwj8vRBWtXW6DaxdB7mvyQ7Jw5Tz1ccgWlZI,119
26
26
  apify/scrapy/pipelines/actor_dataset_push.py,sha256=QERmmExQOGIKQ70-p-lCj5qyE-c-fnYplEqd4mgaB1Q,953
@@ -31,7 +31,7 @@ apify/scrapy/scheduler.py,sha256=AAIKY5i1QxkC1mtmix6n3M2eQaOw-d1T56Noue9xToc,601
31
31
  apify/scrapy/utils.py,sha256=tz_Y8CTqe6KbyMMhLF3m7qqR46jtNH5U7Ty7e19roPU,2814
32
32
  apify/storages/__init__.py,sha256=-9tEYJVabVs_eRVhUehxN58GH0UG8OfuGjGwuDieP2M,122
33
33
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- apify-2.0.0b9.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
35
- apify-2.0.0b9.dist-info/METADATA,sha256=YtSBQadZDZaRnqlaJJ4Yr8CVgMmgU__x6GDak1HOp_0,5231
36
- apify-2.0.0b9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
37
- apify-2.0.0b9.dist-info/RECORD,,
34
+ apify-2.0.0b11.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
35
+ apify-2.0.0b11.dist-info/METADATA,sha256=52hCWtVU74KJjfPiQZhlRm3DbImTQNyRHsOmzx8Bfck,5232
36
+ apify-2.0.0b11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
37
+ apify-2.0.0b11.dist-info/RECORD,,