Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site support request: instagram videos I liked #9790

Open
urza opened this issue Jun 15, 2016 · 3 comments
Open

Site support request: instagram videos I liked #9790

urza opened this issue Jun 15, 2016 · 3 comments

Comments

@urza
Copy link

@urza urza commented Jun 15, 2016

Is it possible to add list extractor for instagram videos I liked? Instagram API is able to return 300 last items I liked (need authentication).
(I found this related blog http://symmetricinfinity.com/2013/04/06/download-your-likes-from-instagram.html)

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Sep 10, 2018

Here are my notes if anyone wants to get to it before me:

URL: https://www.instagram.com/x/saved/ where x is username

Request always requires cookies.

https://www.instagram.com/graphql/query/?query_hash=8c86fed24fa03a8a2eea2a70a80c7b6b&variables=<encoded JSON>

variables must have:

  • id - User ID (see current extractor for how to get this)
  • first - integer, I think this is the limit
  • after - Unique ash for keeping track; it is on the page for the first request, next JSON returns it

Paths in the returned data:

data.user.edge_saved_media.count - int
data.user.edge_saved_media.edges - array
    [].node.is_video
           .shortcode = after /p/
data.user.edge_saved_media.page_info.end_cursor - goes in 'after' in variables in next request
                                    .has_next_page - boolean
@Tatsh Tatsh mentioned this issue Sep 23, 2018
5 of 9 tasks complete
@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Sep 27, 2018

The only way to do this without using the API (which will be deprecated, and the new Graph API does not provide this information) is to go through the entire feed with this path: /graphql/query/?query_hash=663d44f965069e3e859e829b6101903e&variables=%7B%7D

In the JSONthere's data.user.edge_web_feed_timeline.edges[].node.viewer_has_liked and to paginate there's the cursor string like in other requests already supported by the extractor.

Going through the entire feed (10 posts per request) will definitely take a while.

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Sep 29, 2018

@dstftw This issue should be closed unless you want to pursue the above solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.