Giter Club home page Giter Club logo

famousbirthdays's Introduction

node-famousbirthdays

Wrapper around grabbing and parsing FamousBirthdays website.

How to use

const famousBirthdays = require("famousbirthdays");

famousBirthdays(new Date()) // Default is just new Date(). (aka today)
    .then(result=>{
        ///etc
    })

Response

Will be an array of objects consisting of name, age, occuptation, and a link to their page. The array is limited to a length of 15. If the person is no longer alive, age will simply be undefined (oof).

Example

[ { name: 'Johnny Depp',
    age: '56',
    occupation: 'Movie Actor',
    link: 'https://www.famousbirthdays.com/people/johnny-depp.html' },
  { name: 'Tanya Burr',
    age: '30',
    occupation: 'TV Actress',
    link: 'https://www.famousbirthdays.com/people/tanya-burr.html' },
  { name: 'Natalie Portman',
    age: '38',
    occupation: 'Movie Actress',
    link: 'https://www.famousbirthdays.com/people/natalie-portman.html' },
  { name: 'Stassiebaby',
    age: '22',
    occupation: 'Instagram Star',
    link: 'https://www.famousbirthdays.com/people/anastasia-karanikolaou.html' },
  { name: 'Laurie Hernandez',
    age: '19',
    occupation: 'Gymnast',
    link: 'https://www.famousbirthdays.com/people/laurie-hernandez.html' },
  { name: 'Michael J. Fox',
    age: '58',
    occupation: 'Movie Actor',
    link: 'https://www.famousbirthdays.com/people/michael-j-fox.html' },
  { name: 'Zac Vran',
    age: '23',
    occupation: 'Dancer',
    link: 'https://www.famousbirthdays.com/people/zac-vran.html' },
  { name: 'Xavier Serrano',
    age: '26',
    occupation: 'Model',
    link: 'https://www.famousbirthdays.com/people/xavier-serrano.html' },
  { name: 'Mae Whitman',
    age: '31',
    occupation: 'TV Actress',
    link: 'https://www.famousbirthdays.com/people/mae-whitman.html' },
  { name: 'Matthew Bellamy',
    age: '41',
    occupation: 'Rock Singer',
    link: 'https://www.famousbirthdays.com/people/matthew-bellamy.html' },
  { name: 'OMGItsBirdman',
    age: '40',
    occupation: 'YouTube Star',
    link: 'https://www.famousbirthdays.com/people/omgitsbirdman.html' },
  { name: 'Rafi Fine',
    age: '36',
    occupation: 'YouTube Star',
    link: 'https://www.famousbirthdays.com/people/rafi-fine.html' },
  { name: 'Anna Cunningham (2002-2019)',
    age: undefined,
    occupation: 'TikTok Star',
    link: 'https://www.famousbirthdays.com/people/anna-cunningham.html' },
  { name: 'Sonam Kapoor',
    age: '34',
    occupation: 'Movie Actress',
    link: 'https://www.famousbirthdays.com/people/sonam-kapoor.html' },
  { name: 'Jocelyn Macnab',
    age: '14',
    occupation: 'TV Actress',
    link: 'https://www.famousbirthdays.com/people/jocelyn-macnab.html' } ]

Future Plans

  • Giving famous persons a dedicated class
  • Fetching specific people
  • Linking those two first ones together
  • Probably more that I can't think of

famousbirthdays's People

Contributors

jpbberry avatar

Stargazers

 avatar

Watchers

 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.