Add comprehensive fantasy league data export system - #86
Open
anthonydellapia1117 wants to merge 2 commits into
Open
anthonydellapia1117 wants to merge 2 commits into
anthonydellapia1117 wants to merge 2 commits into
Conversation
Introduces a new utility script for exporting Yahoo Fantasy League data to CSV and JSON formats. Features: - Export league settings, teams, players with statistics, trades, add/drops, and matchups - Supports filtering by week range for player statistics - Includes rate limiting for API compliance - Provides both CLI and Python API interfaces - Comprehensive error handling and logging - Full documentation with usage examples Changes: - Add scripts/export_league_data.py: Main export utility class and CLI - Add scripts/EXPORT_LEAGUE_DATA.md: Detailed documentation and examples - Update pyproject.toml: Add optional dependencies for export functionality - Update README.md: Add section and documentation links for export utility Optional dependencies added (xmltodict, pandas) for data processing. CLI usage: python scripts/export_league_data.py TOKEN LEAGUE_KEY Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Extends league data export functionality with: - Sleeper Fantasy League export script with no authentication required - Bulk export tool for simultaneously exporting multiple Yahoo/Sleeper leagues - Pre-configured leagues.json template with comprehensive documentation - Full support for batch operations across entire league history Features: - SleeperFantasyDataExporter class with league, team, roster, and matchup export - BulkLeagueExporter class for coordinated multi-league exports - Configuration-based batch operations (JSON config files) - Flexible week/season filtering - Comprehensive error tracking and results reporting - Support for both CSV and JSON output formats Changes: - Add scripts/export_sleeper_league_data.py: Sleeper API exporter - Add scripts/bulk_export_leagues.py: Multi-league bulk exporter - Add scripts/EXPORT_SLEEPER_LEAGUE_DATA.md: Sleeper export documentation - Add scripts/BULK_EXPORT_LEAGUES.md: Bulk export documentation and guide - Add scripts/your_leagues.json: Pre-configured league reference for user's leagues - Update README.md: Add sections for Sleeper and bulk export utilities No additional dependencies beyond those already in optional[export] group. Works with both CSV (if pandas available) and JSON fallback formats. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds production-ready utilities for exporting comprehensive fantasy league data from Yahoo Fantasy and Sleeper platforms. This addresses the need to backup, analyze, and work with league data across seasons and platforms in a unified, programmatic way.
Changes
Yahoo Fantasy Export (
scripts/export_league_data.py)New
YahooFantasyDataExporterclass with full CLI interface:Sleeper League Export (
scripts/export_sleeper_league_data.py)New
SleeperFantasyDataExporterclass (no authentication required):Bulk League Exporter (
scripts/bulk_export_leagues.py)New
BulkLeagueExporterclass for coordinating multi-league exports:Pre-configured League File (
scripts/your_leagues.json)Template pre-populated with your 14 leagues (2 Sleeper, 12 Yahoo):
Documentation
EXPORT_LEAGUE_DATA.md- Yahoo export guide with usage examplesEXPORT_SLEEPER_LEAGUE_DATA.md- Sleeper export guideBULK_EXPORT_LEAGUES.md- Comprehensive bulk export referenceTechnical Details
Dependencies:
[export]feature group: pandas, xmltodictCode Quality:
Performance:
Output
Exports per league:
All organized by platform, year, and league ID.
Usage
Integration
pyproject.tomldependency management