Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- QueryReturnedBadRequestException Traceback (most recent call last)
- Cell In[5], line 1
- ----> 1 il.download_post(instaloader.Post.from_shortcode(il.context, 'DA5uRxXoiAm'), target="ok")
- File ~/.pyenv/versions/3.8.13/lib/python3.8/site-packages/instaloader/structures.py:207, in Post.from_shortcode(cls, context, shortcode)
- 205 # pylint:disable=protected-access
- 206 post = cls(context, {'shortcode': shortcode})
- --> 207 post._node = post._full_metadata
- 208 return post
- File ~/.pyenv/versions/3.8.13/lib/python3.8/site-packages/instaloader/structures.py:335, in Post._full_metadata(self)
- 333 @property
- 334 def _full_metadata(self) -> Dict[str, Any]:
- --> 335 self._obtain_metadata()
- 336 assert self._full_metadata_dict is not None
- 337 return self._full_metadata_dict
- File ~/.pyenv/versions/3.8.13/lib/python3.8/site-packages/instaloader/structures.py:322, in Post._obtain_metadata(self)
- 320 def _obtain_metadata(self):
- 321 if not self._full_metadata_dict:
- --> 322 pic_json = self._context.graphql_query(
- 323 '2b0673e0dc4580674a88d426fe00ea90',
- 324 {'shortcode': self.shortcode}
- 325 )
- 326 self._full_metadata_dict = pic_json['data']['shortcode_media']
- 327 if self._full_metadata_dict is None:
- File ~/.pyenv/versions/3.8.13/lib/python3.8/site-packages/instaloader/instaloadercontext.py:511, in InstaloaderContext.graphql_query(self, query_hash, variables, referer)
- 507 tmpsession.headers['referer'] = urllib.parse.quote(referer)
- 509 variables_json = json.dumps(variables, separators=(',', ':'))
- --> 511 resp_json = self.get_json('graphql/query',
- 512 params={'query_hash': query_hash,
- 513 'variables': variables_json},
- 514 session=tmpsession)
- 515 if 'status' not in resp_json:
- 516 self.error("GraphQL response did not contain a \"status\" field.")
- File ~/.pyenv/versions/3.8.13/lib/python3.8/site-packages/instaloader/instaloadercontext.py:450, in InstaloaderContext.get_json(self, path, params, host, session, _attempt, response_headers, use_post)
- 448 response_headers.update(resp.headers)
- 449 if resp.status_code == 400:
- --> 450 raise QueryReturnedBadRequestException(self._response_error(resp))
- 451 if resp.status_code == 404:
- 452 raise QueryReturnedNotFoundException(self._response_error(resp))
- QueryReturnedBadRequestException: 400 Bad Request - "fail" status, message "feedback_required" when accessing https://www.instagram.com/graphql/query?query_hash=2b0673e0dc4580674a88d426fe00ea90&variables=%7B%22shortcode%22%3A%22DA5uRxXoiAm%22%7D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement