Last active
August 4, 2018 08:47
-
-
Save arliber/fef6f5afc490e0434c474a454982d307 to your computer and use it in GitHub Desktop.
This file contains 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
function getTopicLinks(html) { | |
let result = scrapeIt.scrapeHTML(html, { | |
topics: { | |
listItem: '.subtags .subtag', | |
data: { | |
link: {attr: 'href'} | |
} | |
} | |
}); | |
return result.topics; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment