from .utils import Utils
from .parser import Parser
from .errors import NotFoundError, NoTitleError, ErrorPageError, HomepageRedirectError, UnknownError

import requests as _requests
session = _requests.Session()
session.headers['User-Agent'] = 'reFill/2 (https://en.wikipedia.org/wiki/User:Zhaofeng_Li/reFill)'

@@ -176,16 +176,33 @@
 equests%0A
+import functools%0A
 session 
@@ -322,8 +322,251 @@
 eFill)'%0A
+%0A# Ugly hack to set default timeouts%0A# https://stackoverflow.com/a/55841818%0Afor method in ('get', 'options', 'head', 'post', 'put', 'patch', 'delete'):%0A    setattr(session, method, functools.partial(getattr(session, method), timeout=(5, 10)))%0A

Add better request timeouts