espn-ff-mx3

0.0.4 • Public • Published

node-espn-ff

Scrape basic league information from ESPN Fantasy football.

Getting started

Install the npm module.

npm install espn-ff-mx3 --save

Get some data!

const EspnFF = require('espn-ff');
 
// Create a scraper instance
// NOTE: For public leagues, you do not need `cookie`, for private you will
const scraper = new EspnFF({
    leagueId: 12345 /* Your league id */,
    cookie: '<Snag this from chrome>'
});
 
scraper.getFantasyTeams((err, teams) => {
    console.log('TEAMS');
    console.dir(teams);
});
 
scraper.getRoster(1, (err, roser) => {
    console.log('Team 1 roster');
    console.dir(roster);
});
 
scraper.getMatchups(null, (err, matchups) => {
    console.log('This weeks matchups');
    console.dir(teams);
});

TODO

  • Proper documentation for now check out ts\types.ts
  • ADD: Waiver wire scraping
  • ADD: Historical player performance

Change Log

0.0.2 - Initial release

Readme

Keywords

Package Sidebar

Install

npm i espn-ff-mx3

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • revup.technology