Created
November 25, 2016 17:22
-
-
Save TheoLeanse/7e0989d0504256c7a63177e5c23030f1 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
const SELECTORS = { | |
rubadub: { | |
url: 'http://www.rubadub.co.uk/records' | |
selectors: ['.product-name'] | |
}, | |
boomkat: { | |
url: 'https://boomkat.com' | |
selectors: ['.release__details'] | |
} | |
} | |
for (let store in SELECTORS) { | |
const $ = document.querySelector; | |
store.selectors.forEach(selector => { | |
Array.from($(store.selectors)).forEach(record => console.log(record)) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment