Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
/ jre-search Public archive

✨ 🍄 Advanced search for Joe Rogan Experience podcast.

Notifications You must be signed in to change notification settings

lucien144/jre-search

Repository files navigation

Joe Rogan Experience podcast on 🚀 🍄

Advanced search for Joe Rogan Experience podcast.

Build Status: Linux Coverage Status XO code style

Installation

npm i

Create .env file in the project's root folder

ENVIRONMENT=development
API_KEY=123YourApiKey
MONGO_DSN=mongodb://localhost:27017/
MONGO_DBNAME=jre-search

Commands

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.

API

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.