Hi, i have a little problem..
HTTP redirect from https://www.instagram.com/graphql/query to https://www.instagram.com/accounts/login/
Traceback (most recent call last):
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\structures.py", line 183, in _field
d = d[key]
KeyError: 'edges'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\M\Desktop\Winner Picker From post Instaloder\IG_Giveaway_Picker.py", line 15, in
comments = post.get_comments()
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\structures.py", line 474, in get_comments
comment_edges = self._field('edge_media_to_comment', 'edges')
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\structures.py", line 186, in _field
d = self._full_metadata
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\structures.py", line 165, in _full_metadata
self._obtain_metadata()
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\structures.py", line 152, in _obtain_metadata
pic_json = self._context.graphql_query(
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\instaloadercontext.py", line 427, in graphql_query
resp_json = self.get_json('graphql/query',
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\site-packages\instaloader\instaloadercontext.py", line 335, in get_json
raise LoginRequiredException("Redirected to login page. Use --login.")
instaloader.exceptions.LoginRequiredException: Redirected to login page. Use --login.