From 862c51fa81aca8a20d4b697e486aacd9531623f4 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 30 Aug 2018 13:58:02 +0200 Subject: [PATCH] Profile.from_id graphql query is not rate limited --- instaloader/instaloadercontext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py index 9571a20..1f0e263 100644 --- a/instaloader/instaloadercontext.py +++ b/instaloader/instaloadercontext.py @@ -248,7 +248,8 @@ class InstaloaderContext: is_graphql_query = 'query_hash' in params and 'graphql/query' in path # some queries are not rate limited if invoked anonymously: query_not_limited = is_graphql_query and not self.is_logged_in \ - and params['query_hash'] in ['9ca88e465c3f866a76f7adee3871bdd8'] + and params['query_hash'] in ['9ca88e465c3f866a76f7adee3871bdd8', + '472f257a40c653c64c666ce877d59d2b'] if is_graphql_query and not query_not_limited: waittime = graphql_query_waittime() if waittime > 0: