Skip to content

Instantly share code, notes, and snippets.

@anthony2025
Last active March 22, 2017 05:43
Show Gist options
  • Save anthony2025/ab11673f0a258206b593b4d814c0f675 to your computer and use it in GitHub Desktop.
Save anthony2025/ab11673f0a258206b593b4d814c0f675 to your computer and use it in GitHub Desktop.
/*
ON CONSOLE
const images = document.getElementsByTagName('*');
let srcList = [];
for (let i = 0; i < images.length; i++) {
srcList.push(images[i].style.backgroundImage);
}
*/
const pizzaGuy = require('pizza-guy')
const urls = require('./url-list.json')
pizzaGuy
.deliver(urls)
.onAddress('./scrapped-images')
.onSuccess((info) => {
console.log(`${info.fileName} succeed!`)
})
.onError((info) => {
console.log(`${info.fileName} failed`)
})
.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment