GithubHelp home page GithubHelp logo

enixta's Introduction

YouTube Reviews from YouTube data api

Step 1: I've Created a function ('youtube_search') to get the response from the YouTube based on the query we've given. This api uses google-api-client. This youtube_search function will take two parameters namely 'product name' and 'max results' and it will return the response including the details like videoID, Title, Date Posted, Description etc..

Step 2: To serve the Database(MySQL) and requests, I've choosen Django, a MVC(Model View Control) framework developed in Python language.

Project Structure: ->project(in our case 'reviews') - Project Configuration directory contains server configurations, database configurations.

->settings.py - filesystem configuration and database configuration
->urls.py - contains the active urls those are relative with the base url
->wsgi.py - wsgi server file

->web-application directory( in our case 'videoreviews') - Contains files related with our web application.

->migrations(dir) - will contain database migrations for our application.
->admin.py - an interface file to register our database tables, to see them in admin panel of our website.
->urls.py - (optional) to simplify the structure we've created a local urls file for our application.
->models.py - this is the file which holds the schema for the database tables.
->views.py - this is the main controller file for our application, this will serve the requests and this is where we write our total backend functionality.

Step 3: Views.py: ->Here I've created three functions namely 'index', 'SaveResult', 'Delete'.

index - this function will accept the request from the front end and serves the products those we have stored in database. Also accepts new product to add. Whenever we send a new product to this function it will send a request to youtube_search with product_name and max_results. Based on these two parameters it will make a request to YouTube and send the response back to us.

We'll send this response to SaveResults function. Here we'll process this data and save it into our database.

The Delete function is for deleting a perticular review from the ui.

enixta's People

Contributors

sreenivas134 avatar

Watchers

James Cloos avatar  avatar

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.