core.req
new_user_agent
new_user_agent() → str
Returns a new random user agent.
get_response_cached
get_response_cached(
url: str,
max_retries: int = 5,
timeout: int = 10,
verify: bool = True
) → Response
Returns a response from a given url.
Args:
url
(str): url to get response from.max_retries
(int, optional): Maximum number of retries. Defaults to 5.timeout
(int, optional): Timeout in seconds. Defaults to 10.verify
(bool, optional): Whether to verify SSL certificate. Defaults to True.enable_cache
(bool, optional): Whether to use cache or not. Defaults to True.This file was automatically generated via lazydocs.