mirror of
https://github.com/instaloader/instaloader.git
synced 2026-11-01 04:55:32 -08:00
Fix Profile.get_posts() when logged in by updating the posts query
Instagram now answers doc_id 28975909992013618 with 400 "feedback_required". Use the query the web app currently sends for a profile's posts tab (PolarisProfilePostsTabContentQuery_connection), doc_id 29104886249145907, with its current relay provider variables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7efa2de6fe
commit
804894a0b1
@@ -1412,7 +1412,8 @@ class Profile:
|
||||
node_wrapper=lambda n: Post.from_iphone_struct(self._context, n),
|
||||
# The query and variables that the web app sends for a profile's posts tab
|
||||
# (PolarisProfilePostsTabContentQuery_connection). Instagram answers the
|
||||
# previous query, 7898261790222653, with "execution error".
|
||||
# previous queries, 7898261790222653 ("execution error") and 28975909992013618
|
||||
# (400 "feedback_required"), with errors.
|
||||
query_variables={
|
||||
"data": {
|
||||
"count": 12,
|
||||
@@ -1425,12 +1426,14 @@ class Profile:
|
||||
"include_multi_captions": True,
|
||||
"username": self.username,
|
||||
"__relay_internal__pv__PolarisMultiCaptionCarouselEnabledrelayprovider": True,
|
||||
"__relay_internal__pv__PolarisShortDramaEnabledrelayprovider": False,
|
||||
"__relay_internal__pv__PolarisShortDramaEnabledrelayprovider": True,
|
||||
"__relay_internal__pv__PolarisSEOIsCrawlerrelayprovider": False,
|
||||
"__relay_internal__pv__PolarisThreadsStyleCommentsEnabledrelayprovider": False,
|
||||
"__relay_internal__pv__PolarisReelsRecoDebugOverlayEnabledrelayprovider": False,
|
||||
},
|
||||
query_referer="https://www.instagram.com/{0}/".format(self.username),
|
||||
is_first=Profile._make_is_newest_checker(),
|
||||
doc_id="28975909992013618",
|
||||
doc_id="29104886249145907",
|
||||
query_hash=None,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user