Scraper is a Javascript plugin that will scour a page for all image URLs, both in <img> tags and as background images to any type of element.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test general maintenance Oct 4, 2014
.gitignore initial commit May 8, 2013
LICENSE.txt initial commit May 8, 2013
README.md general maintenance Oct 4, 2014
scraper.js general maintenance Oct 4, 2014

README.md

#Scraper

Scraper is a Javascript plugin that will scour a page for all image URLs, both in <img> tags and as background images to any type of element.

##Usage

Include the following in the <head> of your document:

<script src="scraper.js"></script>

To initalize the plugin, add the following to your document:

<script type="text/javascript">
	window.onload = function () {
		Scraper.init();
	};
</script>

To access the scraped images, access the array variable directly:

console.log(Scraper.images);

##Deduplication

This plugin offers to deduplicate (the default action) or leave the list of images unaltered. To turn off deduplication, set the dedupe variable to false:

Scraper.dedupe = false;