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

Stop relying on Forced Fetch API?! #10

Open
gabianastasie opened this issue May 2, 2024 · 1 comment
Open

Stop relying on Forced Fetch API?! #10

gabianastasie opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gabianastasie
Copy link

Hi there,

I just wanted to let you know that "Forced Fetch API" seems to offer lower-quality pictures.

Ironically, the img[src] of the photos you can see inside the DOM tree offer much higher-quality.

Media API seems great, but it's pretty rate-limited. Not sure, but many times I saw the same resolution for the resource downloaded via Media API and the resource manually downloaded via the URL I found within the DOM tree. So relying on the URLs found within DOM tree would drastically reduce the calls to Instagram APIs?!

And maybe just try to heavily rely on the information in the DOM tree and/or Media API and stop relying on Forced Fetch API since the quality is not that great?! 🤔

@SN-Koarashi
Copy link
Owner

SN-Koarashi commented May 6, 2024

This issue has been mentioned previously by other users and I'm still looking for a solution to this issue.

As mentioned in the description, the Force Fetch API provides a one-time capture of all resources in the post. Although the img[src] element in the post has better photo quality, the number of each capture is limited (only 1~4 resources), so how to strike a balance between the two is a question I'm thinking about.

Regarding the problem of not turning on the Force Fetch API, but sometimes still using it, it is because when the fetched resource contains a blob video, there is usually no video URL in the DOM tree for retrieval, and the Force Fetch API will be called to obtain resource URL.

@SN-Koarashi SN-Koarashi added the enhancement New feature or request label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants