Automate adding of free agents in fantasy football leagues.
This was developed to automate the adding and dropping of players on a fantasy football team. This allows users to automate this process so that when waivers clear (normally around 4 AM Eastern Time), fantasy owners can continue to sleep in their beds.
- Install Ruby
- Clone this repo
- Install and run bundler gem:
gem install bundler
bundle install
- Modify your script to log into fantasy sites along with adding/dropping players.
- Run RSpec:
rspec spec\yahoo\add_free_agent.rb
This spec does not schedule execution on its own. It is recommended that you run RSpec via cron job or scheduled Windows Task. A Windows Task would look something like:
- Start a program:
C:\Ruby22-x64\bin\rspec.bat
- With arguments:
spec\yahoo\add_free_agent.rb > free-agent-sleeper.log
- Start in:
<root directory of repo>
Discussion: Old reddit thread