Giter Club home page Giter Club logo

artproject-scraper's Introduction

Build Status npm version

ArtProject Scraper

Get random art and metadata from Google Art Project.

Important:
This is experimental and extremely dependable on current layout of Google Art Project website. Don't use it for anything important since it can be broken in future.

Why

I wasn't able to find a simple API that returns painting and some meta data, but I found Google Art Project that has exactly what I want, except there was no API.

Usage

  
var scraper = require('artproject-scraper')

scraper(function(err, randomArt) {
  if (!err)
    console.log(randomArt)

    // Output:
    //
    // { 
    //   image: 'http://lh4.ggpht.com/cLJpANVeHxbEdjmRMUu7E0YBYdbGoRVd87igKPdXbgvKt69qWoWg_7-6GE9U=s1200',
    //   title: 'Portrait of Nini Lopez',
    //   link: 'https://www.google.com/culturalinstitute/browse/Portrait%20of%20Nini%20Lopez',
    //   description: 'Nini Lopez first appeared in the work of Auguste Renoir (1841–1919) in La Loge (The Theatre Box), painted in 1874. The young woman from Montmartre, cruelly nicknamed Nini-Gueule-de-Raie, or "fish face", is shown alongside the artist\'s brother. Although the artwork was immediately purchased by the art dealer "le Père Martin", Renoir, like many of his Impressionist friends, was experiencing serious financial difficulty at the time. In the spring of',
    //   creator: 'Pierre-Auguste Renoir',
    //   date: '1876'
    // }

})

Test

npm test or tap test/*.js

artproject-scraper's People

Contributors

stojanovic avatar

Stargazers

 avatar  avatar  avatar

Watchers

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