Skip to content

Scrapes the Google Fonts attribution page and loads it into a JSON object

Notifications You must be signed in to change notification settings

johnsorrentino/google-fonts-attribution

Repository files navigation

Google Fonts Attribution

The Google Fonts API doesn't include license or copyright information which is frustrating if you want to programmatically include this information in your application.

This repo include a small script that scrapes the Google Fonts attribution page and loads it into a JSON object. The format closely resembles the official API.

Installation

bundle install

Usage

irb
require './google-fonts-attribution'
GoogleFontsAttribution.new.execute

Sample

{
  "kind": "webfonts#webfontList",
  "items": [
    {
      "family": "ABeeZee",
      "license_name": "SIL Open Font License, 1.1",
      "license_url": "http://scripts.sil.org/OFL",
      "copyright": "Copyright (c) 2011 by Anja Meiners, with Reserved Font Name 'ABeeZee'"
    },
    {
      "family": "Abel",
      "license_name": "SIL Open Font License, 1.1",
      "license_url": "http://scripts.sil.org/OFL",
      "copyright": "Copyright (c) 2011, Matthew Desmond (http://www.madtype.com | [email protected]), with Reserved Font Name Abel."
    },
    {
      "family": "Abhaya Libre",
      "license_name": "SIL Open Font License, 1.1",
      "license_url": "http://scripts.sil.org/OFL",
      "copyright": "Copyright (c) 1996-2015 Pushpananda Ekanayake ([email protected]) Copyright (c) 2015 Sol Matas ([email protected]) Copyright (c) 2015 Mooniak ([email protected])"
    }
  ]
}

About

Scrapes the Google Fonts attribution page and loads it into a JSON object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages