wikilogos

1.0.0 • Public • Published

wikilogos

This module attempts to get the entities and institutions logo urls from wikipedia content if they are available on their pages, caching the results for an hour. For example:

> const fetchLogos = require('wikilogos')
> fetchLogos('github').then(x => console.log(x))
> { entity: 'GitHub',
  logoUrls:
   [ 'http://upload.wikimedia.org/wikipedia/commons/thumb/2/24/GitHub_logo_2013_padded.svg/128px-GitHub_logo_2013_padded.svg.png',
     'http://upload.wikimedia.org/wikipedia/commons/thumb/2/24/GitHub_logo_2013_padded.svg/192px-GitHub_logo_2013_padded.svg.png',
     'http://upload.wikimedia.org/wikipedia/commons/thumb/2/24/GitHub_logo_2013_padded.svg/256px-GitHub_logo_2013_padded.svg.png' ] }

The entity is the page found searching wikipedia and the logoUrls are the logos images found inside the article content

Install

You can install with [npm]:

$ npm install --save wikilogos

License

Copyright © 2020, Juan Convers. Released under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i wikilogos

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.51 kB

Total Files

8

Last publish

Collaborators

  • webdacjs