From fff25d6f4a0083513693b5e29dca9ac82ea42224 Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:58:40 +0100 Subject: [PATCH] Remove unnecessary do_sleep() --- instaloader/instaloadercontext.py | 1 - 1 file changed, 1 deletion(-) diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py index 457e58f..43bcae3 100644 --- a/instaloader/instaloadercontext.py +++ b/instaloader/instaloadercontext.py @@ -256,7 +256,6 @@ class InstaloaderContext: # Need to silence mypy bug for this. See: https://github.com/python/mypy/issues/2427 session.request = partial(session.request, timeout=self.request_timeout) # type: ignore - self.do_sleep() # Make a request to Instagram's root URL, which will set the session's csrftoken cookie # Not using self.get_json() here, because we need to access the cookie session.get('https://www.instagram.com/')