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

Fix Instagram code changes #12

Merged
merged 4 commits into from
Dec 17, 2020
Merged

Fix Instagram code changes #12

merged 4 commits into from
Dec 17, 2020

Conversation

chriskyfung
Copy link
Owner

@chriskyfung chriskyfung commented Dec 8, 2020

This PR fixes the issues related to Instagram code changes around noon, 7 Dec, UTC by replacing the query path with the new Instragram endpoint, updating the header for the HTTP request, and updating the lookup of download URLs from the new data structure

Fixes #11

Chris K.Y. FUNG added 2 commits December 9, 2020 02:49
+ Changed query URL to `https://i.instagram.com/api/v1/feed/reels_media/...`
+ Added two new variables, namely, `x-ig-app-id` and `x-ig-www-claim`
+ Added more header details
+ Rename `myFunction()` to `__main__()`
@chriskyfung chriskyfung added the bug Something isn't working label Dec 8, 2020
@chriskyfung chriskyfung changed the title New endpoint (#11) New endpoint Dec 8, 2020
@chriskyfung chriskyfung added the documentation Improvements or additions to documentation label Dec 8, 2020
@royjor2016
Copy link

i think line 50 should be changed to

if (html == '{"reels": {}, "reels_media": [], "status": "ok"}') {

so the script doesnt fail when there's no IG story.

@chriskyfung
Copy link
Owner Author

i think line 50 should be changed to

if (html == '{"reels": {}, "reels_media": [], "status": "ok"}') {

so the script doesnt fail when there's no IG story.

@royjor2016 Thanks!

@chriskyfung chriskyfung merged commit 6d4c0a6 into master Dec 17, 2020
@chriskyfung chriskyfung deleted the NewEndpoint#11 branch December 17, 2020 06:24
chriskyfung added a commit that referenced this pull request Jun 28, 2021
chriskyfung added a commit that referenced this pull request Jun 28, 2021
@chriskyfung chriskyfung added this to the Alpha milestone Dec 5, 2023
@chriskyfung chriskyfung self-assigned this Dec 5, 2023
@chriskyfung chriskyfung changed the title New endpoint Fix Instagram code changes Feb 6, 2024
@chriskyfung chriskyfung modified the milestones: Alpha, Pre-alpha Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instagram changed code? Script no longer working?
2 participants