.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.exceptions.SearxEngineTooManyRequestsException Class Reference
+ Inheritance diagram for searx.exceptions.SearxEngineTooManyRequestsException:
+ Collaboration diagram for searx.exceptions.SearxEngineTooManyRequestsException:

Public Member Functions

 __init__ (self, suspended_time=None, message='Too many request')
 

Static Public Attributes

str SUSPEND_TIME_SETTING = "search.suspended_times.SearxEngineTooManyRequests"
 
- Static Public Attributes inherited from searx.exceptions.SearxEngineAccessDeniedException
str SUSPEND_TIME_SETTING = "search.suspended_times.SearxEngineAccessDenied"
 

Additional Inherited Members

- Public Attributes inherited from searx.exceptions.SearxEngineAccessDeniedException
 suspended_time
 
 message
 
 SUSPEND_TIME_SETTING
 
- Protected Member Functions inherited from searx.exceptions.SearxEngineAccessDeniedException
 _get_default_suspended_time (self)
 

Detailed Description

The website has returned a Too Many Request status code

By default, searx stops sending requests to this engine for 1 hour.

Definition at line 95 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

searx.exceptions.SearxEngineTooManyRequestsException.__init__ ( self,
suspended_time = None,
message = 'Too many request' )
Generic exception to raise when an engine denies access to the results.

:param suspended_time: How long the engine is going to be suspended in
    second. Defaults to None.
:type suspended_time: int, None
:param message: Internal message.  Defaults to ``Access denied``
:type message: str

Reimplemented from searx.exceptions.SearxEngineAccessDeniedException.

Definition at line 105 of file exceptions.py.

105 def __init__(self, suspended_time=None, message='Too many request'):
106 super().__init__(message=message, suspended_time=suspended_time)
107
108

Member Data Documentation

◆ SUSPEND_TIME_SETTING

str searx.exceptions.SearxEngineTooManyRequestsException.SUSPEND_TIME_SETTING = "search.suspended_times.SearxEngineTooManyRequests"
static

Definition at line 101 of file exceptions.py.


The documentation for this class was generated from the following file: