HOAIAN2 / Instagram-Downloader

Chrome Extension, download photos, videos from Instagram post, tv, reels, stories
MIT License
144 stars 21 forks source link

Please provide us Java or Php code as well thanks #5

Closed imattaullah closed 1 year ago

HOAIAN2 commented 1 year ago

Extension only work with Javascript, but you can use api that I use on my code to implement on any language.

HOAIAN2 commented 1 year ago

But you have to carefully because if you get data from (not from browser) like a nodejs or php server, Instagram can block your account ( they can validate buy csrf, user agent,....)

imattaullah commented 1 year ago

Thanks!  My logic in my java app is that I use the html source code of from link and then get the video_url to download a video, or if a video is private, then the app asks the user to login, but you very well know that's why I request conversion. i did not find what API you are using in JS.

HOAIAN2 commented 1 year ago

Thanks!  My logic in my java app is that I use the html source code of from link and then get the video_url to download a video, or if a video is private, then the app asks the user to login, but you very well know that's why I request conversion. i did not find what API you are using in JS.

You can found on src/js/post.js and src/js/story.js every function that I call fetch api from browser.

imattaullah commented 1 year ago

Dear can you say about const PROFILE_HASH = '69cba40317214236af40e7efa697781d' const POST_HASH = '9f8827793ef34641b2fb195d4d41151c'

what are these hashes please

HOAIAN2 commented 1 year ago

Dear can you say about const PROFILE_HASH = '69cba40317214236af40e7efa697781d' const POST_HASH = '9f8827793ef34641b2fb195d4d41151c'

what are these hashes please

That are special hashes Instagram use to call API, I found that in network tab.

imattaullah commented 1 year ago

Thanks for the response, Can we use these hashes (I mean these hashes for public ) or we need own hashes etc,

HOAIAN2 commented 1 year ago

Thanks for the response, Can we use these hashes (I mean these hashes for public ) or we need own hashes etc,

If you change hashes, api will 404 respone, so you cannot change that.

HOAIAN2 commented 1 year ago

It's took me 1 week to found that ( 6 month ago).