.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, int|None suspended_time=None, message='Too many request')
 
- Public Member Functions inherited from searx.exceptions.SearxEngineAccessDeniedException
 __init__ (self, int|None suspended_time=None, str message='Access denied')
 

Additional Inherited Members

- Public Attributes inherited from searx.exceptions.SearxEngineAccessDeniedException
 suspended_time = suspended_time
 
 message = message
 
- Static Public Attributes inherited from searx.exceptions.SearxEngineAccessDeniedException
str SUSPEND_TIME_SETTING = "search.suspended_times.SearxEngineAccessDenied"
 
- Protected Member Functions inherited from searx.exceptions.SearxEngineAccessDeniedException
int _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 97 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

searx.exceptions.SearxEngineTooManyRequestsException.__init__ ( self,
int | None suspended_time = None,
message = 'Too many request' )

Definition at line 107 of file exceptions.py.

107 def __init__(self, suspended_time: int | None = None, message='Too many request'):
108 super().__init__(message=message, suspended_time=suspended_time)
109
110

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