1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-10-02 13:27:07 +02:00

Remove unnecessary do_sleep()

This commit is contained in:
Alexander Graf 2023-12-09 17:58:40 +01:00
parent b52547ea1c
commit fff25d6f4a

View File

@ -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/')