UrlPool¶
-
class
UrlPool
(name, urls, *, strip_slash=True, ttl=3600)[source]¶ Pool of possible urls which provides easy access to a working one.
-
ttl
¶ Time until the current url expires
- Type
timedelta
-
name
- Return type
-
prepare_url
(url)[source]¶ Prepare an url to be used as the current url.
This function is performed for all urls returned by url
- Return type
-