Last active
March 22, 2017 05:43
-
-
Save anthony2025/ab11673f0a258206b593b4d814c0f675 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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