-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
27 lines (19 loc) · 1.16 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Scraper for NFL.com Fantasy Football
Environment Variables:
Set these in your terminal:
export NFL_LOGIN="[email protected]"
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)