Git Product home page Git Product logo

image-abstraction-layer's Introduction

Image Search Abstraction Layer

User stories:
    1) I can get the image URLs, alt text and page urls for a set of images relating to a given search string.
    2) I can paginate through the responses by adding a ?offset=2 parameter to the URL.
    3) I can get a list of the most recently submitted search strings.

Example usage:

https://image-absraction-muideen.glitch.me/api/search/rats

Example output:

  
    [
      {
        "alt":"Rat | Animal Wildlife",
        "contentUrl":"http://3.bp.blogspot.com/-dGFs7_yd9n8/TmRLwqdVFyI/AAAAAAAAA2g/n5cql6PbQcU/s1600/rat_2.jpg",
        "hostPageUrl":"http://animal-wildlife.blogspot.com/2011/09/rat.html"
      },
      {
        "alt":"Pictures of Rats -- Animal Photos!",
        "contentUrl":"http://farm2.static.flickr.com/1332/1091960123_5bf912ca27_b.jpg",
        "hostPageUrl":"http://animalphotos.info/a/topics/animals/mammals/rodents/rats/"
      },
      {
        "alt":"Cute Rat Pictures by Jessica Florence",
        "contentUrl":"http://amazingcentral.com/wp-content/uploads/2011/01/adorable-rat-pictures-7.jpg",
        "hostPageUrl":"http://amazingcentral.com/cute-rat-pictures-by-jessica-florence/"
      },
      {
         "alt":"Rat Control NYC – Rat Control NJ – Rat Exterminator NYC",
         "contentUrl":"https://pestcontrolnjnyc.com/wp-content/uploads/2015/06/rat-exterminator-nyc.jpg",
         "hostPageUrl":"https://pestcontrolnjnyc.com/rat-exterminator/"
      }
    ]

Example usage:

https://image-absraction-muideen.glitch.me/api/latest

Example output:


  [
    {
      "when":1523050530,
      "query":"rats"
    },
    {
      "when":1523052797,
      "query":"cats"
    },
    {
      "when":1523052866,
      "query":"lizard"
    }
  ]

You can view the live demo here: https://image-abstraction-muideen.glitch.me/

image-abstraction-layer's People

Contributors

muisoft 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.