0.1.1 • Published 7 years ago

enrichr v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

enrichr

JavaScript module to enrich data.

Its primarily use-case is to enrich Algolia records. Give it a url, and it can give you back its number of shares on Facebook, or its OpenGraph data. Give it a city and country and it will give you its coordinates.

Usage

import enrichr from 'enrichr';

enrichr.opengraph('https://www.algolia.com/').then(data => {
  console.info(data);
});

Methods

opengraph

Takes an url as input, and will resolve with an object of the OpenGraph data.

Example:

{ url: 'https://www.algolia.com/',
  site_name: 'Algolia',
  title: 'Algolia | The Most Reliable Platform for Building Search',
  description: 'A powerful hosted search engine API, Algolia provides product teams with the resources & tools they need to create fast, relevant search.',
  image:
   { url: 'https://www.algolia.com/static_assets/images/flat2/algolia/algolia1200x500_15Q2-264406e8.png',
     width: '1200',
     height: '500' } }

twitterPicture

Takes a twitter account name as input, and will resolve with the url of profile picture

Example:

enrichr.twitter('dotcss').then(url => {
  // https://pbs.twimg.com/profile_images/659732196496928768/ByIcwqVt.png
});

TODO

  • Get share count from https://my.donreach.com/
  • Get number of followers on Twitter
  • Get first Google Image result for keyword
  • Get screenshot of website
0.1.1

7 years ago

0.1.0

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago