GithubHelp home page GithubHelp logo

ulysseseng / odnblockbuster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smramr/odnblockbuster

0.0 0.0 0.0 87 KB

Upload OMDb data to OriginTrail DKG

License: MIT License

JavaScript 97.95% Shell 2.05%

odnblockbuster's Introduction

Disclaimer: I have modified Yolan Maldonado's https://github.com/Y0lan odn-smart-publisher to use OMDb's API. Work in progress. Feedback is welcomed! @ethsplainer


This script collects metadata of a random movie and uploads it to the DKG.

Example data

{"@context":"https://schema.org","@type":"Movie","actor":{"@type":"Person","name":"Ram Charan, Genelia D'Souza, Shazahn Padamsee"},"countryOfOrigin":"India","datePublished":"26 Nov 2010","duration":"162 min","thumbnailUrl":"https://m.media-amazon.com/images/M/MV5BM2ZkZGIwZDAtNGU1ZS00NTlkLThjYjYtMjU5MzQzNDQyMTBmXkEyXkFqcGdeQXVyODA2ODM3NDQ@._V1_SX300.jpg","aggregateRating":{"@type":"AggregateRating","ratingValue":"6.7"},"description":"A man, who doesn't believe that love can last a lifetime, pursues an exuberant romantic, but their clashing ideologies keep them apart.","dateCreated":"2010","director":{"@type":"Person","name":"Bommarillu Baskar"},"name":"Orange","award":"3 nominations"}

image

Installation:

sudo git clone https://github.com/ethsplainer/ODNBlockbuster.git && cd ODNBlockbuster && npm i && chmod +x publish.sh 

Change default API key
Replace 1234 with your own API key. You can get one here for free: https://www.omdbapi.com/apikey.aspx

sed -i 's/MYKEY/1234/' app.js

Executing the script

nohup ./publish.sh &

odnblockbuster's People

Contributors

smramr avatar ulysseseng 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.