Skip to content

ianderse/nfl_fantasy_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scraper for NFL.com Fantasy Football

Environment Variables:

Set these in your terminal:

export NFL_LOGIN="email@email.com"
export NFL_PWD="password"
export NFL_URL="http://fantasy.nfl.com/league/xxxxxxx/team/y" (Where x = your league number and y = your team number)
export NFL_PP="http://fantasy.nfl.com/league/xxxxxxx/players" (x = your league number)

Example Uses:

scraper = NFLFantasyScraper.new
scraper.login (login to your account)
puts scraper.my_team (prints out full names of all players on your team as well as their opponents for next week and current points scored)
puts scraper.available_players (prints out first three pages of available players sorted by fantasy points scored this season)
puts scraper.print_table (prints out nicely formatted table of all team information from my_team method)

Contributing:

Feel free to fork and send pull requests.  Please also send feature requests that you would like to see implemented (open an issue).

TODO:
- Add projected points for each player on team
- Add projected points for each player in available player list
- Projected points should come from Fantasy Football Nerd (because NFL.com's projections are terrible)

About

Web Scraper for NFL.com Fantasy Football

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages