Skip to content

Instantly share code, notes, and snippets.

@TheoLeanse
Created November 25, 2016 17:22
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 TheoLeanse/7e0989d0504256c7a63177e5c23030f1 to your computer and use it in GitHub Desktop.
Save TheoLeanse/7e0989d0504256c7a63177e5c23030f1 to your computer and use it in GitHub Desktop.
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