A python app that searches a predefined query on YouTube using YT Data API and saves it in MongoDB and lists it on the dashboard.
It searches asynchronously in backgroud using Python asyncio and threading library.
Predefined search query: "game"
Time Interval for searching: 60sec
git clone https://github.com/abhishekraj272/youtube-video-lister.git
cd youtube-video-lister
pip3 install -r requirements.txt
# Set Env Var: MONGODB_URI, TotalAPISet, YTAPIKey1, YTAPIKey2, YTAPIKey3....
# TotalAPISet = count( YTAPIKey1, YTAPIKey2, YTAPIKey3.... )
flask run
# OR
gunicorn run:app
heroku login
heroku create
heroku config:set MONGODB_URI=<MONGODB_URI>
heroku config:set TotalAPISet=<TotalAPISet>
heroku config:set YTAPIKey1=<YTAPIKey1>
.
.
.
git push heroku master
heroku open
- Shuffles through the provided API Key set every time it searches.
- View function is cached for 60sec for every args provided.
- Sort & Filter Options are provided.
- The data fetched from YT are latest.
- ?invertList=
- ?maxResults=
- ?sortBy=
- ?start=
- Flask
- Pymongo
- Flask Caching
- HTML, CSS & JS
- os, random, datetime, requests, asyncio, json libraries
Note: Mini YT LOL is running on a Free Tier MongoDB and Heroku server.
Live: Mini YT LOL - Hosted on Heroku
Want to contribute? Great!
This repository is the starter code for you. Therefore, I would like to accept your pull requests 😎
test test test!!