mIRC Homepage
Posted By: quartz Retrieve image from instagram - 13/08/20 06:17 PM
so I have a bookmark link (at end of this post),

(excuse me, didn't realise this link was actually that big)

in firefox, "ctrl-i > media" also brings up images that the instagram page contains

can mirc (w/sockets or something?) get this information to save images?

so the question is - can mIRC retrieve images from an instagram page. I've just included the code below from the bookmark link in case it has some information about how images are retrieved



also I don't do javascript (someone else provided the code below on a different forum), if anyone sees anything in the code below that isnt needed or looks suss
Posted By: maroon Re: Retrieve image from instagram - 13/08/20 06:48 PM
there's no link, so an unknown portion of your post was chopped.
My only experience with https sockets has been with sites that didn't need login authentication cookies, which I assume instagram needs, so I don't know how to use sockets to inform a site that I'm logged in.

Another issue that matters is how the site sends the data back to you. If they send it as a huge chunk of data without line-endings, you'd need to fetch it into a binary variable so you could stitch it together when it finally finishes - or at least sends enough data to identify the info you're needing.
Posted By: quartz Re: Retrieve image from instagram - 13/08/20 08:09 PM
thanks - the link is the large chunk of java script at the end
Posted By: maroon Re: Retrieve image from instagram - 13/08/20 09:23 PM
I'm not seeing it. When I search your post for "https" they're all at github.io and none of them are near the tail end of your post.
Posted By: quartz Re: Retrieve image from instagram - 13/08/20 10:47 PM
after the word 'suss' there is no javascript then a chunk?
Posted By: FroggieDaFrog Re: Retrieve image from instagram - 14/08/20 06:42 AM
The bookmarklet functions on an entirely different basis than say MSL scripting. The bookmarklet is executed on an already loaded instagram page within a browser; thus allowing it to make use of javascript previously loaded by instagram in your browser, aswell as identifying credentials such as the user's cookies

mIRC does not have that luxery, essentially you'd have to write a script that performs the same requests as the browser to scrap image URLs and then download them
Posted By: quartz Re: Retrieve image from instagram - 19/08/20 12:11 AM
k , thanx for the info maroon and Froggie
© mIRC Discussion Forums