googlesearch icon indicating copy to clipboard operation
googlesearch copied to clipboard

Added a timeout to __init__.py

Open yutarour opened this issue 3 years ago • 0 comments

Since requests seems to have a very long time out length, we can add a timeout in order to stop requests from blocking up our code. This is especially useful when using proxies that may not respond. In my opinion, 5 seconds seems like a quite generous time to allow a request to stay going for, but that can be changed to be longer.

yutarour avatar Jun 19 '22 23:06 yutarour