Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] sleeper added importable league history #66

Open
mogaffar opened this issue Sep 13, 2021 · 9 comments
Open

[ENHANCEMENT] sleeper added importable league history #66

mogaffar opened this issue Sep 13, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mogaffar
Copy link

Hey, sleeper added the ability to add in league history. Can you see if the site will pull that info? my league id is 727925426831290368

@mogaffar mogaffar added the enhancement New feature or request label Sep 13, 2021
@nmelhado
Copy link
Owner

It looks like I won't be able to use the info input into Sleeper. I'll need to work on a workaround (probably using Google Sheets), this will take some time to execute properly

@nmelhado
Copy link
Owner

I'm going to put this on the list of major features to build, right after dynasty power rankings. I'm starting work on features again in November and will post an update here with an eta when I start working on it

@Haglerd
Copy link

Haglerd commented Nov 23, 2021

+1 for this enhancement :)

@nmelhado
Copy link
Owner

Since this will have to be implemented from scratch, my plan is to create a Google sheets template that will need to be filled out and will then be imported in order to add legacy records. The goal is to have this finished before the start of '22 season. I will try to post periodic updates here as progress is made.

@samadya
Copy link

samadya commented May 30, 2022

Will this include weekly matchup scores possibly?

@camtmiller
Copy link

Any update on this?

@nmelhado
Copy link
Owner

Any update on this?

@camtmiller Google sheets is out. From everything I've looked into, sheets would require oAuth which will complicate things too much. I will likely have to create a json template (similar to what exists for managers) and read from that.

Unfortunately,I just changed jobs and have a lot on my plate. I'm not sure what kind of an ETA I can provide for having this ready. Hoping to have it ready before the end of the season, but will be hard pressed to finish it before the season starts.

@camtmiller
Copy link

@nmelhado, all good. Thank you for your work for this whole site creation. Have fun with the new job

@nmelhado nmelhado added the help wanted Extra attention is needed label Aug 18, 2022
@Robert-litts
Copy link

@nmelhado My league just transitioned to Sleeper this season after just about a decade on ESPN. Everyone loves the new app, but the historical records are something that nobody wants to lose. I found your site (which is incredible!) and have forked & implemented my own version where I started messing with the homepage to manually input custom HTML/CSS with our old ESPN data. I first started by using cwendt94's API code which I also started messing with last year before we officially made the switch. However, I am not a programmer (just an EE with some peripheral knowledge).. so web development isn't my strong suite! But I am very interested in getting my league's historical data into a clean, easily viewable state. I love this website template and think it's the perfect place to do it, especially since Sleeper doesn't even support manual history on their own web client.

I just found Leeger which uses cwendt89's espn-api & also includes support for Yahoo/MyFantasyLeague to provide Python/excel compiled statistics. I tested Leeger out last night and with some configuration (ensuring names were consistent across years, our league changed size at one point, etc) it worked perfectly. Again, since I have very basic HTML skills, I simply took the HTML code from the excel files that were generated and threw them up onto the "League-Page" home page. My league loves it (for now), but it was not automated, the formatting is horrendous (due to me), and it can use some cleaning up to make it look nice.

Since I saw this open issue on here, I thought that combining Leeger API pulls/historical statistics with its own dedicated section on "League-Page" would be awesome! I am also very interested in attempting this implementation, but just would need a little assistance understanding what code needs to be modified. Right now I have strictly been working with custom HTML/CSS inside the "/src/lib/uitls/leagueinfo.js".

To move forward, I imagine that Leeger's python library would need to be added to League-Page, along with an example python script which does the API pull as well as generates the "league" object which contains the year-by-year data. A user would need to input their custom league info as variables in the Python script to ensure the right data is pulled (dependent on platform i.e. ESPN, Yahoo, MFL). The yearly statistics could then be setup to automatically be placed inside a specific "historical" section of the League-Page.

Sorry for the long post and I hope it all makes sense. I love how user-friendly this page is and I would love to help make some of this work, despite my rudimentary programming skills.

Finally, Here's my current site, which is still very much a work in progress (basically a brain dump of random code I am trying) in case anyone wants to get an idea of what I am trying to type out here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants