2.0.0 • Published 1 year ago
bob-the-miner v2.0.0
What ? another web scraper ? ...yeah, that's Bob !
What about reading the doc ?
Install
To use Bob in your own project :
npm install bob-the-miner --saveIf you want to contribute :
git clone https://github.com/raoul2000/bob-the-miner.git
cd bob-the-miner
npm installTest
First start the test local server :
npm run serverThen open another shell run the tests :
npm testExamples
- extract titles from the nodejs new website
npm run nodejs-news- extract headlines from the New-York Times website
npm run nyt-headline- extract packages list from NPM website
npm run npm-crawlerDocumentation
Documentation is based on vuepress.
To view the documentation running a local server :
npm run docs:devIf the error
error:0308010C:digital envelope routines::unsupportedis reported during local dev server startup, try to first defineexport NODE_OPTIONS=--openssl-legacy-providerand re-run the command. (see this thread for more)
To build the documentation :
npm run docs:buildThen copy the generated files from docs/.vuepress/dist to another (temporary) folder outside of the project, switch the the branch gh-pages and copy back the files. Then commit and push.