Created
April 11, 2020 19:41
-
-
Save carboleda/ee5238bc9c1cfc14f7b50fd776f1c957 to your computer and use it in GitHub Desktop.
scraping-scrape-it
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 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