Skip to content

Instantly share code, notes, and snippets.

@sysnucleus
Created May 14, 2022 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sysnucleus/d823908efea55e7c65e6a73939116c74 to your computer and use it in GitHub Desktop.
Save sysnucleus/d823908efea55e7c65e6a73939116c74 to your computer and use it in GitHub Desktop.
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