logging in via saved session.json... session.json failed (login_required), trying chrome cookies logged in as shakingmedicine engagers.json: 26 items [1/26] @dermikester: thread_id=340282366841710301244260077390878237939 [2/26] @l.i.s.a_r_: thread_id=340282366841710301244260214671291187992 [3/26] @katja_nitschke_: thread_id=340282366841710301244260228990086419912 [4/26] @zarah_schreiner: thread_id=340282366841710301244260077391424904551 [5/26] @mentalformation: thread_id=340282366841710301244260077391568237870 [6/26] @antoscha03: thread_id=340282366841710301244260171014002214351 [7/26] @crawlthroughthegardn: thread_id=340282366841710301244260077391831571177 [8/26] @emilyerdbeereeeeeeeeee: thread_id=340282366841710301244260077391954904498 [9/26] @ferrarieugenioo: thread_id=340282366841710301244260215054094484123 [10/26] @edin.emerlahi: thread_id=340282366841710301244260188513380465665 [11/26] @luis.b4r: thread_id=340282366841710301244260077392324904461 [12/26] @theabushadyway: thread_id=340282366841710301244260226117426709391 [13/26] @fredi.ambi: thread_id=340282366841710301244259685441834303463 [14/26] @lortiebenoit: thread_id=340282366841710301244260171700168813175 [15/26] @ewiges.selbst: thread_id=340282366841710301244260077394214904272 [16/26] @smilensam: thread_id=340282366841710301244260077392778237749 [17/26] @viv3k369: thread_id=340282366841710301244260175806221735365 [18/26] @filip_stor_bjorn: thread_id=340282366841710301244260077393054904388 [19/26] @sica_etty: thread_id=340282366841710301244260077393171571043 [20/26] @kitkit_gucci_boi67: thread_id=340282366841710301244260077393278237699 [21/26] @janebowring: thread_id=340282366841710301244260077393361571024 [22/26] @arbolconnection: thread_id=340282366841710301244260077393474904346 [23/26] @projekt_acura_: thread_id=340282366841710301244260077393621570998 [24/26] @700centss: thread_id=340282366841710301244260077390494904644 [25/26] @anii.mirii: thread_id=340282366841710301244260077390561571304 [26/26] @georgmeisl: thread_id=340282366841710301244259700583426046957 engagers.json: resolved 26/26 new thread_ids new_followers.json: 18 items [1/18] @leonid.owannar: thread_id=340282366841710301244260077393988237628 [2/18] @piou_777: thread_id=340282366841710301244260205330088787056 [3/18] @ewiges.selbst: thread_id=340282366841710301244260077394214904272 [4/18] @sylvainmvt: thread_id=340282366841710301244260199771442672897 [5/18] @djonjo22: thread_id=340282366841710301244260170035955653838 [6/18] @mikefirth65: thread_id=340282366841710301244260211647844820061 [7/18] @bcheriet74: thread_id=340282366841710301244260077394688237558 [8/18] @ellikadattilomusic: thread_id=340282366841710301244260077394978237529 [9/18] @ellaloveslife_: thread_id=340282366841710301244260075999105043783 [10/18] @chicoaraujooficial: no thread [11/18] @lancasterfarmfresh: no thread [12/18] @christiane_buchauer: thread_id=340282366841710301244260076031005040593 [13/18] @t.o.rben: thread_id=340282366841710301244260077395428237484 [14/18] @angelinaeleven11: no thread [15/18] @alejandro.feruglio: thread_id=340282366841710301244260063236186320075 [16/18] @reganbrownnnnn: no thread [17/18] @lizbeth_______________: thread_id=340282366841710301244260076047765038917 [18/18] @digitalwealthrefire: thread_id=340282366841710301244259906917628618599 new_followers.json: resolved 14/18 new thread_ids done. written: /Users/daichi/keith-dm-scanner/network_audit.html synced to iCloud: keith_network_audit.html total: 1976 entries ⚡ NEEDS REPLY: 211 ↑ BUMP UP: 1765 logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 431, in login_by_sessionid user = self.user_info_v1(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 430, in user_info_v1 return extract_user_v1(result["user"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/extractors.py", line 246, in extract_user_v1 return User(**data) ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/main.py", line 263, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 7 validation errors for User full_name Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_private Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_verified Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing media_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing follower_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing following_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_business Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 247, in _send_public_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 332, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 163, in public_request raise e # Stop retries ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 155, in public_request return self._send_public_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 274, in _send_public_request raise ClientBadRequestError(e, response=e.response) instagrapi.exceptions.ClientBadRequestError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 126, in user_short_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 366, in public_graphql_request raise ClientGraphqlError( instagrapi.exceptions.ClientGraphqlError: Error: '400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7'. Message: 'invalid request' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 32, in cl.login_by_sessionid(session_id) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 433, in login_by_sessionid user = self.user_short_gql(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 133, in user_short_gql user = extract_user_short(self.user_web_profile_info_gql(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 186, in user_web_profile_info_gql "fb_dtsg": self.fb_dtsg, ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 159, in fb_dtsg self._fb_dtsg = self.fetch_fb_dtsg() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 139, in fetch_fb_dtsg response = self.public.get( ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 605, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 592, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 727, in send history = [resp for resp in gen] ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 192, in resolve_redirects raise TooManyRedirects( requests.exceptions.TooManyRedirects: Exceeded 30 redirects. logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 431, in login_by_sessionid user = self.user_info_v1(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 430, in user_info_v1 return extract_user_v1(result["user"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/extractors.py", line 246, in extract_user_v1 return User(**data) ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/main.py", line 263, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 7 validation errors for User full_name Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_private Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_verified Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing media_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing follower_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing following_count Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing is_business Field required [type=missing, input_value={'strong_id__': '72829591...ofile_pic_url_hd': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/missing During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 247, in _send_public_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 332, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 163, in public_request raise e # Stop retries ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 155, in public_request return self._send_public_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 274, in _send_public_request raise ClientBadRequestError(e, response=e.response) instagrapi.exceptions.ClientBadRequestError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 126, in user_short_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 366, in public_graphql_request raise ClientGraphqlError( instagrapi.exceptions.ClientGraphqlError: Error: '400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7'. Message: 'invalid request' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 32, in cl.login_by_sessionid(session_id) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 433, in login_by_sessionid user = self.user_short_gql(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 133, in user_short_gql user = extract_user_short(self.user_web_profile_info_gql(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 186, in user_web_profile_info_gql "fb_dtsg": self.fb_dtsg, ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 159, in fb_dtsg self._fb_dtsg = self.fetch_fb_dtsg() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 139, in fetch_fb_dtsg response = self.public.get( ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 605, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 592, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 727, in send history = [resp for resp in gen] ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 192, in resolve_redirects raise TooManyRedirects( requests.exceptions.TooManyRedirects: Exceeded 30 redirects. logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/users/7282959111/info/?is_prefetch=false&entry_point=self_profile&from_module=self_profile&is_app_start=False During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 431, in login_by_sessionid user = self.user_info_v1(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 429, in user_info_v1 raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 423, in user_info_v1 result = self.private_request(f"users/{user_id}/info/", params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 247, in _send_public_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 332, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 163, in public_request raise e # Stop retries ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 155, in public_request return self._send_public_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 274, in _send_public_request raise ClientBadRequestError(e, response=e.response) instagrapi.exceptions.ClientBadRequestError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 126, in user_short_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 366, in public_graphql_request raise ClientGraphqlError( instagrapi.exceptions.ClientGraphqlError: Error: '400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7'. Message: 'invalid request' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 32, in cl.login_by_sessionid(session_id) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 433, in login_by_sessionid user = self.user_short_gql(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 133, in user_short_gql user = extract_user_short(self.user_web_profile_info_gql(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 186, in user_web_profile_info_gql "fb_dtsg": self.fb_dtsg, ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 159, in fb_dtsg self._fb_dtsg = self.fetch_fb_dtsg() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 139, in fetch_fb_dtsg response = self.public.get( ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 605, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 592, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 727, in send history = [resp for resp in gen] ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 192, in resolve_redirects raise TooManyRedirects( requests.exceptions.TooManyRedirects: Exceeded 30 redirects. logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/users/7282959111/info/?is_prefetch=false&entry_point=self_profile&from_module=self_profile&is_app_start=False During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 431, in login_by_sessionid user = self.user_info_v1(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 429, in user_info_v1 raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 423, in user_info_v1 result = self.private_request(f"users/{user_id}/info/", params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 247, in _send_public_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 332, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 163, in public_request raise e # Stop retries ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 155, in public_request return self._send_public_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 274, in _send_public_request raise ClientBadRequestError(e, response=e.response) instagrapi.exceptions.ClientBadRequestError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 126, in user_short_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 366, in public_graphql_request raise ClientGraphqlError( instagrapi.exceptions.ClientGraphqlError: Error: '400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7'. Message: 'invalid request' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 32, in cl.login_by_sessionid(session_id) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 433, in login_by_sessionid user = self.user_short_gql(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 133, in user_short_gql user = extract_user_short(self.user_web_profile_info_gql(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 186, in user_web_profile_info_gql "fb_dtsg": self.fb_dtsg, ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 159, in fb_dtsg self._fb_dtsg = self.fetch_fb_dtsg() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 139, in fetch_fb_dtsg response = self.public.get( ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 605, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 592, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 727, in send history = [resp for resp in gen] ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 192, in resolve_redirects raise TooManyRedirects( requests.exceptions.TooManyRedirects: Exceeded 30 redirects. logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/users/7282959111/info/?is_prefetch=false&entry_point=self_profile&from_module=self_profile&is_app_start=False During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 431, in login_by_sessionid user = self.user_info_v1(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 429, in user_info_v1 raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 423, in user_info_v1 result = self.private_request(f"users/{user_id}/info/", params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 247, in _send_public_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 332, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 163, in public_request raise e # Stop retries ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 155, in public_request return self._send_public_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 274, in _send_public_request raise ClientBadRequestError(e, response=e.response) instagrapi.exceptions.ClientBadRequestError: 400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 126, in user_short_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/public.py", line 366, in public_graphql_request raise ClientGraphqlError( instagrapi.exceptions.ClientGraphqlError: Error: '400 Client Error: Bad Request for url: https://www.instagram.com/graphql/query/?variables=%7B%22user_id%22%3A%227282959111%22%2C%22include_reel%22%3Atrue%7D&query_hash=ad99dd9d3646cc3c0dda65debcd266a7'. Message: 'invalid request' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 32, in cl.login_by_sessionid(session_id) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 433, in login_by_sessionid user = self.user_short_gql(int(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 133, in user_short_gql user = extract_user_short(self.user_web_profile_info_gql(user_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 186, in user_web_profile_info_gql "fb_dtsg": self.fb_dtsg, ^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 159, in fb_dtsg self._fb_dtsg = self.fetch_fb_dtsg() ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/user.py", line 139, in fetch_fb_dtsg response = self.public.get( ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 605, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 592, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 727, in send history = [resp for resp in gen] ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 192, in resolve_redirects raise TooManyRedirects( requests.exceptions.TooManyRedirects: Exceeded 30 redirects. logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid' logging in via saved session.json... session.json failed (login_required), trying chrome cookies Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 386, in _send_private_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/models.py", line 1028, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 27, in cl.get_timeline_feed() # verify session is alive ^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/auth.py", line 245, in get_timeline_feed return self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 579, in private_request raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 564, in private_request self._send_private_request(endpoint, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/instagrapi/mixins/private.py", line 412, in _send_private_request raise LoginRequired(response=e.response, **last_json) instagrapi.exceptions.LoginRequired: login_required During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/daichi/keith-dm-scanner/enrich_threads.py", line 31, in session_id = unquote({c["name"]: c["value"] for c in cookies}["sessionid"]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'sessionid'