{"id":21887792,"url":"https://github.com/arjuntheprogrammer/youtubesearchdjango","last_synced_at":"2025-12-30T22:52:07.616Z","repository":{"id":101775218,"uuid":"410331585","full_name":"arjuntheprogrammer/YoutubeSearchDjango","owner":"arjuntheprogrammer","description":"Application to fetch and search Youtube Video Data.","archived":false,"fork":false,"pushed_at":"2021-09-25T17:06:35.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T20:29:23.962Z","etag":null,"topics":["celery","django","docker","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arjuntheprogrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-25T17:00:23.000Z","updated_at":"2021-09-25T17:06:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ca5ecd7-4994-4b45-bf10-96afede285d0","html_url":"https://github.com/arjuntheprogrammer/YoutubeSearchDjango","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuntheprogrammer%2FYoutubeSearchDjango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuntheprogrammer%2FYoutubeSearchDjango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuntheprogrammer%2FYoutubeSearchDjango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjuntheprogrammer%2FYoutubeSearchDjango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjuntheprogrammer","download_url":"https://codeload.github.com/arjuntheprogrammer/YoutubeSearchDjango/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244895079,"owners_count":20527829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","django","docker","redis"],"created_at":"2024-11-28T11:12:33.640Z","updated_at":"2025-12-30T22:52:07.560Z","avatar_url":"https://github.com/arjuntheprogrammer.png","language":"Python","readme":"# YOUTUBE SEARCH\n\n- Application to fetch Youtube Videos Data related to specific search query(Cricket in our case).\n- Storing the data in PostgreSQL DB\n- API for searching and retrieving Youtube Data.\n\n## BASIC REQUIREMENTS\n\n- Server should call the YouTube API continuously in background (async) with some interval (say 10 seconds) for fetching the latest videos for a predefined search query and should store the data of videos (specifically these fields - Video title, description, publishing datetime, thumbnails URLs and any other fields you require) in a database with proper indexes.\n- A GET API which returns the stored video data in a paginated response sorted in descending order of published datetime.\n- A basic search API to search the stored videos using their title and description.\n- Dockerize the project.\n- It should be scalable and optimized.\n\n## ADDITIONAL REQUIREMENTS\n\n- Add support for supplying multiple API keys so that if quota is exhausted on one, it automatically uses the next available key.\n- Make a dashboard to view the stored videos with filters and sorting options (optional)\n- Optimise search api, so that it's able to search videos containing partial match for the search query in either video title or description.\n  - Ex 1: A video with title _`How to make tea?`_ should match for the search query `tea how`\n\n## TECH STACK\n\n- Django(Python 3.9)\n- PostgreSQL DB\n- Celery\n- Redis\n\n## INSTALLATION COMMAND\n\n`$ docker-compose up -d`\n\n## API ENDPOINT\n\n- To GET Paginated Videos Data: `http://localhost:8000/api/get_videos/`\n  ![image](https://user-images.githubusercontent.com/15984084/134779831-29274948-de44-4b29-bae2-f9abbfe5884c.png)\n\n- To GET Paginated Search Query Data Videos: `http://localhost:8000/api/search_video/?query=Kohli`\n  ![image](https://user-images.githubusercontent.com/15984084/134779837-78466663-f619-452f-9e7c-a3a3af2897e4.png)\n\n## POSTMAN COLLECTION\n\n[YoutubeSearch.postman_collection.json.zip](https://github.com/arjuntheprogrammer/YoutubeSearchDjango/files/7230077/YoutubeSearch.postman_collection.json.zip)\n\n## DOCKER SCREENSHOT\n\n![image](https://user-images.githubusercontent.com/15984084/134780122-11c30e65-87dc-42ac-95cf-808af99bc997.png)\n\n## REFERENCE\n\n- YouTube data v3 API: [https://developers.google.com/youtube/v3/getting-started](https://developers.google.com/youtube/v3/getting-started)\n- Search API reference: [https://developers.google.com/youtube/v3/docs/search/list](https://developers.google.com/youtube/v3/docs/search/list)\n  - To fetch the latest videos you need to specify these: type=video, order=date, publishedAfter=\u003cSOME_DATE_TIME\u003e\n  - Without publishedAfter, it will give you cached results which will be too old\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjuntheprogrammer%2Fyoutubesearchdjango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjuntheprogrammer%2Fyoutubesearchdjango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjuntheprogrammer%2Fyoutubesearchdjango/lists"}