riad-azz / instagram-video-downloader

Simple website made with Next.js for downloading instagram videos with an API that can be used to integrate it in other applications.
https://instagram-videos.vercel.app
MIT License
180 stars 75 forks source link

Always return "The video download link for this post is not available" #2

Closed galihmrd closed 1 year ago

galihmrd commented 1 year ago

Screenshot_2023-05-11-04-44-53-295_com android chrome

riad-azz commented 1 year ago

This is not an issue really, its because Vercel runs on serverless and the session gets suspended by Instagram since its considered as suspicious login because every time its used from a different region. If you host the website on your own cloud instance you wont be getting this problem.

riad-azz commented 1 year ago

I updated the environment variables for more session cookie identifiers and added device identifier, account identifier, location identifier which should reduce suspicious behavior suspension by Instagram.

HappySinha commented 1 year ago

I'm facing the same errors when I host on vercel https://instagram-video-downloader-1.vercel.app/ How can I solve this error I also change AUTH_COOKIE="..." USE_UPSTASH="true" UPSTASH_REDIS_REST_URL="..." UPSTASH_REDIS_REST_TOKEN="..." //With real value

riad-azz commented 1 year ago

The Authenticated API with cookie was removed duo to the high chance of being banned by Instagram because its against their terms of service.

As for the response "The video download link for this post is not available." is not an error or issue, it just means the scraper was not able to find the video URL on the post page.

Untitled

If you want to use this app in production you will have to use yt-dlp to host a backend python server that fetches and serves the posts to the frontend. I did not implement this here because its not possible to host it on a serverless hosting like Vercel.

have a good day.

riad-azz commented 1 year ago

Also i noticed that you pushed your Auth cookie and Upstash info to the Github repository that you forked:

image

Please make sure to change your password on Instagram and Upstash because people can use this info to access your account and never push .env files to the repository because all the variables there should be kept secret from everyone for security reasons.

Have a nice day.

HappySinha commented 1 year ago

Thank you so much for giving answere