GithubHelp home page GithubHelp logo

nirantak / wsiwn Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 312 KB

What Should I Watch Next? Expert System built using Python/Flask and Prolog.

Python 23.86% Prolog 73.59% HTML 0.52% Dockerfile 1.61% Shell 0.42%
python3 python prolog expert-system web-scraping swi-prolog flask react

wsiwn's Introduction

WSIWN

What Should I Watch Next?

Table of Contents

Usage

  • Install Docker and Docker Compose

  • Run web app

    $ docker-compose up

    or

  • Run Prolog

    $ docker-compose run api bash
    $ swipl server/prolog/movies.pl
    $ swipl server/prolog/tv.pl

    Execute queries

    ?- movies(X, Z).
    ?- movies(X, L, G, D, Y).
    
    ?- tv(X, Z).
    ?- tv(X, L, G, D, S, T).

    where

    • X: Output variable (byte string)
    • Z: Input Search term (str)
    • L: Language (str)
    • G: Genre (str)
    • D: Duration {short, avg, long}
    • Y: Year (int)
    • S: Number of Seasons (int)
    • T: Status {ended, airing}

Technology Stack

Working

REST API Endpoints


Method[name] URI Description
GET[movies] /api/movies?query=string Display Movies matching query string
GET[tv] /api/tv?query=string Display TV shows matching query string
POST[movies] /api/movies Search Movies with params (at least 1): [language(str), genre(str), duration{short, avg, long}, year(int)]
POST[tv] /api/tv Search TV shows with params (at least 1): [language(str), genre(str), duration{short, avg, long}, seasons(int), status{airing, ended}]

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.