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.