Simple way to get an Instagram post's media source.
-
Go to the page you want to download from.
-
Open your browser's dev console (e.g. Ctrl+Shift+J in Chrome on Windows/Linux).
-
Run the following code in the console to print the image/video URL to the console.
$('.lfFrame.Frame.Image').attr('src') // image (option 1) $('meta[property="og:image"]').attr('content') // image (option 2)