Module scrapfly.errors
Classes
- class ApiHttpClientError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ApiHttpClientError(HttpError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Subclasses- ApiHttpServerError
- scrapfly.errors.BadApiKeyError
- scrapfly.errors.PaymentRequired
- scrapfly.errors.TooManyRequest
 Inherited members
- class ApiHttpServerError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ApiHttpServerError(ApiHttpClientError): passCommon base class for all non-exit exceptions. Ancestors- ApiHttpClientError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyAspError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyAspError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyError (message: str,
 code: str,
 http_status_code: int,
 resource: str | None = None,
 is_retryable: bool = False,
 retry_delay: int | None = None,
 retry_times: int | None = None,
 documentation_url: str | None = None,
 api_response: ForwardRef('ApiResponse') | None = None)
- 
Expand source codeclass ScrapflyError(Exception): KIND_HTTP_BAD_RESPONSE = 'HTTP_BAD_RESPONSE' KIND_SCRAPFLY_ERROR = 'SCRAPFLY_ERROR' RESOURCE_PROXY = 'PROXY' RESOURCE_THROTTLE = 'THROTTLE' RESOURCE_SCRAPE = 'SCRAPE' RESOURCE_ASP = 'ASP' RESOURCE_SCHEDULE = 'SCHEDULE' RESOURCE_WEBHOOK = 'WEBHOOK' RESOURCE_SESSION = 'SESSION' def __init__( self, message: str, code: str, http_status_code: int, resource: Optional[str]=None, is_retryable: bool = False, retry_delay: Optional[int] = None, retry_times: Optional[int] = None, documentation_url: Optional[str] = None, api_response: Optional['ApiResponse'] = None ): self.message = message self.code = code self.retry_delay = retry_delay self.retry_times = retry_times self.resource = resource self.is_retryable = is_retryable self.documentation_url = documentation_url self.api_response = api_response self.http_status_code = http_status_code super().__init__(self.message, str(self.code)) def __str__(self): message = self.message if self.documentation_url is not None: message += '. Learn more: %s' % self.documentation_url return messageCommon base class for all non-exit exceptions. Ancestors- builtins.Exception
- builtins.BaseException
 Subclasses- scrapfly.errors.ExtraUsageForbidden
- scrapfly.errors.HttpError
 Class variables- var KIND_HTTP_BAD_RESPONSE
- 
The type of the None singleton. 
- var KIND_SCRAPFLY_ERROR
- 
The type of the None singleton. 
- var RESOURCE_ASP
- 
The type of the None singleton. 
- var RESOURCE_PROXY
- 
The type of the None singleton. 
- var RESOURCE_SCHEDULE
- 
The type of the None singleton. 
- var RESOURCE_SCRAPE
- 
The type of the None singleton. 
- var RESOURCE_SESSION
- 
The type of the None singleton. 
- var RESOURCE_THROTTLE
- 
The type of the None singleton. 
- var RESOURCE_WEBHOOK
- 
The type of the None singleton. 
 
- class ScrapflyProxyError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyProxyError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyScheduleError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyScheduleError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyScrapeError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyScrapeError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflySessionError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflySessionError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyThrottleError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyThrottleError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class ScrapflyWebhookError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass ScrapflyWebhookError(ScraperAPIError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.ScraperAPIError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members
- class UpstreamHttpClientError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass UpstreamHttpClientError(UpstreamHttpError): passCommon base class for all non-exit exceptions. Ancestors- scrapfly.errors.UpstreamHttpError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 SubclassesInherited members
- class UpstreamHttpServerError (request: requests.models.Request,
 response: requests.models.Response | None = None,
 **kwargs)
- 
Expand source codeclass UpstreamHttpServerError(UpstreamHttpClientError): passCommon base class for all non-exit exceptions. Ancestors- UpstreamHttpClientError
- scrapfly.errors.UpstreamHttpError
- scrapfly.errors.HttpError
- ScrapflyError
- builtins.Exception
- builtins.BaseException
 Inherited members