Git Product home page Git Product logo

querytube's Introduction

Querytube

Integration of Youtube API with fetching results with updated intervals supporting multiple search queries

How it works:-

  1. User registers the search queries. For eg 'football'.
  2. The registerd queries are fetched from Youtube Api at regular inteval and update the database.
  3. User can view the queries with the order of published video date with support of pagination and also videos related to a particular search-query registered.

How to use:-

  1. Make python virtualenv
  2. git clone https://github.com/savish28/Querytube.git
  3. cd Querytube
  4. pip install -r requirements.txt
  5. python manage.py makemigrations
  6. python manage.py migrate
  7. python manage.py runserver
  8. python manage.py process_tasks
  9. To view the queries registered Get request - http://localhost:8000/api/register/
  10. To register a search query Post request - http://localhost:8000/api/register/ Input Data - {"query" : "football"}
  11. To view videos Request type - GET http://localhost:8000/api/video/ Get params supported- 'page' , 'query' 'page' will contain the page number 'query' will contain the query_id to view the results related to a single search query Not providing 'query' would show the results of all search queries registerd with descending published dates
  12. Tasks status is seen in the terminal in which python manage.py process_tasks is executed

How to admin use:-

  1. python manage.py createsuperuser
  2. Login to http://localhost:8000/admin/
  3. All the models/users/task info are stated here

Additional Features:-

  1. Supports multiple keys for Youtube API if one of them exhausts daily limit.
  2. Django Rest Framework Dashboard to view Api requests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.