Custom Youtube search and videoplayer made entirely on Python Web Framework Django.Data collected by using YouTube Data API v3. Templates made on Bootstrap 4.
It shows top 12 youtube video result of your search.
On clicking at any video, it opens a new page containing the embedded video and a button to redirect to youtube page of the same video.
Shows title, total no. of views, thumbnail and the video uploaded date.
virtualenv venv
. This will a create a vitual environment called "venv" that helps with controlling dependencies.(For windows run mkvirtualenv venv
)source venv/bin/activate
.( For windows run workon venv
)(while in the activated virtual environment)
pip install -r requirements.txt
NOTE: After installing dependencies, pip-tools is also installed. You can now use it to manage package dependencies of your project.
Add a new package to requirements.txt and run the following command to auto-update requirements.txt file
pip freeze > requirements.txt
Run the following command to sync your virtualenv
pip-sync
This will install/upgrade/uninstall everything necessary to match the requirements.txt contents.
Open the Youtube_Search/settings.py file and change YourAPIKey with 'Google developer genereated API of Youtube Data API v3' here:
YOUTUBE_API_KEY = 'YourAPIKey'
python manage.py runserver