Skip to content

Instantly share code, notes, and snippets.

@carboleda
Created April 11, 2020 19:41
Show Gist options
  • Save carboleda/ee5238bc9c1cfc14f7b50fd776f1c957 to your computer and use it in GitHub Desktop.
Save carboleda/ee5238bc9c1cfc14f7b50fd776f1c957 to your computer and use it in GitHub Desktop.
scraping-scrape-it
const scrapeIt = require("scrape-it");
async function scrapeItExample() {
const scrapeResult = await scrapeIt('https://slides.com/carboleda', {
presentations: {
listItem: 'li.deck.public',
data: {
title: 'span.deck-title-value',
description: 'span.deck-description-value',
link: {
selector: 'a.deck-link',
attr: 'href'
}
}
}
});
console.log(scrapeResult);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment