Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

artproject-scraper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artproject-scraper

Get random art and metadata from Google Art Project

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 31 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc