A scraper that generates weekly summaries for the Reddit Dynasty 2 fantasy baseball league.
- Python 3.9 or newer
- Docker
- A CBS account with access to the Reddit Dynasty 2 fantasy baseball league
- An internet connection
- Clone the repository
- Create a Python virtual environment
python3 -m venv .venv
- Activate the virtual environment
# instructions for bash; follow your shell's instructions
source .venv/bin/activate
- Install project dependencies
pip install --upgrade . -c constraints.txt
- Run the script. It takes a while to scrape data from CBS and compute the optimal all star lineups
./src/main.py -s <scoring period> -u <your CBS username> -p <your CBS password>
- Resolve multiple all star lineups. Because of how the scraper gathers data, it will pull all optimal lineups and won't attempt to deduplicate them; this is up to you to do
- Copy-paste the results into the league subreddit