Advanced search for Joe Rogan Experience podcast.
npm i
ENVIRONMENT=development
API_KEY=123YourApiKey
MONGO_DSN=mongodb://localhost:27017/
MONGO_DBNAME=jre-search
Command | Description |
---|---|
node cli/download.js |
Downloads all JRE videos from YouTube. |
node cli/download.js -p --p |
Purge all videos from DB before the scrape. |
node cli/download.js -a --all |
Download all videos in one go. |
node cli/analyse.js |
Analyse the downloaded videos and saves hosts & keywords. |
npm run server |
Run the API server. |
npm run site |
Run the API server. |
npm run coverage |
Upload coverage to Coveralls.io (needs .coveralls.yml for local run). |
npm run ava |
Run tests only with ava. |
npm test |
Run tests with XO lint and code coverage. |
Endpoint | Description | Params |
---|---|---|
/hosts?page=N |
List of all hosts along with videos. Paginated. | page |
/hosts?search=al |
Search for hosts with name "AL..." | search |
/hosts/:id?page=N&user_id=X |
Detail of the host along with his/her videos. | page user_id - to filter out user's wached videos |
/hosts/top |
List of hosts ordered by count. | |
/stats |
Statistics. |