Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WebHarvy codes for Instagram Image Scraping
// RegEx for image selection
src[^\=]*="([^\s"]*)
// JavaScript code for pagination
els = document.getElementsByTagName('svg');
for (var i = els.length - 1; i >= 0; i--) {
attr = els[i].getAttribute('aria-label');
if(attr && attr === "Next") {
els[i].parentElement.click();
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment