Skip to content

Instantly share code, notes, and snippets.

@sysnucleus
Created May 14, 2022 07:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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