imputnet / cobalt

save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
10.26k stars 722 forks source link

Instagram API is unaccessible on many instances #572

Open lpwyz opened 2 weeks ago

lpwyz commented 2 weeks ago

Hello, we are unable to obtain the video link for Instagram

For example: https://www.instagram.com/reel/C8N7FIHuENX/?igsh=Znk2azI2MHJwNnk0 https://www.instagram.com/reel/C4vRLDmrbqq/?igsh=OWxqOXE5NTBvNGp2 https://www.instagram.com/reel/C7HaVTsOxPp/?igsh=MWU0dWEzdDFzZmw2NA==

prabesharyal commented 1 week ago

I am not sure, but what my initial guess for your problem is server and location. Instagram cleverly started restricting content based on location. Like being in Europe, i was not able to download the contents from URL, it showed as INVALID URL HASHalthough it was correct. I was geo restricted.

So, i shifted my server to San Francisco ultimately everything was working fine as hell.

ihatespawn commented 3 days ago

affects instances with a lot of users or datacenter ips, try another instance https://instances.hyper.lol/

wukko commented 3 days ago

only affects the main instance

it affects all instances with big enough traffic (and especially those with datacenter ips)

ihatespawn commented 3 days ago

from my testing

i didn't test every instance, just some

i also updated the message

wukko commented 3 days ago

please don't reply with unproven assumptions next time

ihatespawn commented 3 days ago

please don't reply with unproven assumptions next time

okay, i just didn't know. i'll be sure to not make that mistake next time

wukko commented 3 days ago

it's ok :3

tediorelee commented 2 days ago

Hi, about the ig download issue, is there any fix?

I tried to deploy cobalt api and web on my local NAS and fill the cookies.json file but X(twitter) and Instagram still getting "couldn't find any media content" or "content may be region restricted" errors

wukko commented 2 days ago

twitter only works for video in case you're trying to download images. you can save images from the app, this functionality isn't needed in cobalt.

there's currently no clear fix for instagram :(

tediorelee commented 2 days ago

twitter only works for video in case you're trying to download images. you can save images from the app, this functionality isn't needed in cobalt.

there's currently no clear fix for instagram :(

Understood, download x videos with cobalt works fine and I didn't know it only meant for videos...