News for hackers. Stuff that matters.
Re:Saving Instagram images automatically every hour with Nod... by jeroenhd on Thursday April 20, 2023 @08:50PM (#35648517)
Instagram bot detection works well, too well for tools like these. They'll work for a short while, especially if you only use it yourself, but the API will quickly lie to you ("account does note exist") once they think you're a bot.

Your online demo already shows 404s for accounts I know exist.

I think the only way to get stable access to the API is to take over a device running the official app. I've been considering looking into running Android apps headlessly with Frida hooks for this purpose (should be possible on Linux through Anbox?) exactly because of the annoying not detection frameworks.

All I want is to show the stupid pictures a friend or family member linked me without having to hand over my data to these leeches. I guess that's exactly what their business model is all about, though.

Re:Saving Instagram images automatically every hour with Nod... by menzoic on Thursday April 20, 2023 @08:56PM (#35648566)
You don't need to use a device. You can use a User-Agent header to make it look like a real device and use a proxy with an IP that a normal user would use
Re:Saving Instagram images automatically every hour with Nod... by orsifrancesco on Friday April 21, 2023 @04:34AM (#35651151)
correct.. this is what the original repo https://github.com/orsifrancesco/instagram-without-api-node does
Re:Saving Instagram images automatically every hour with Nod... by jeroenhd on Friday April 21, 2023 @01:23PM (#35657092)
No, that doesn't work for long enough. It appears to work for a while and then it just breaks. Very basic passive fingerprinting is enough to block something as simple as that.

Sending the right user agent (and other headers) will work for most sites, but in my experience it's not enough for Instagram.

Re:Saving Instagram images automatically every hour with Nod... by orsifrancesco on Friday April 21, 2023 @04:35AM (#35651158)
correct.. normally the token expires after week but.. it happens it expires soon when suddenly thousands of people making a request.. ;) I will fix it