Last active
September 11, 2017 06:22
-
-
Save nemo/2dd47b59f00aed4faf72fcc49a5dff83 to your computer and use it in GitHub Desktop.
StdLib Distributed Scraper Example
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
const lib = require('lib'); | |
lib.username.scraper['@local']({ | |
url: 'https://github.com/search?q=scraping&ref=opensearch', | |
queries: [ | |
[".repo-list-item h3 a", "text"], | |
[".repo-list-item h3 a", "attr", ["href"]] | |
] | |
}) | |
.then(console.log) | |
.catch(console.error); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment