#๐Ÿ”’ How to build a web app to scrape and combine info with an API, then calculate simple data?

4 messages ยท Page 1 of 1 (latest)

latent hatch
#

TLDR; Looking to build an app to help with my fantasy football league. While I can use the Sleeper API to pull most of the league info, I will have to scrape the player's dollar value from each team's league page. What should my tech stack be?

Web App Goals:

Grab each team's rosters via Sleeper API.

Grab each rostered player's dollar value, most likely via scraper.

Grab the transaction history of each rostered player.

Calculate how many seasons a player has been on a roster.

Calculate how much a total roster "costs." For example, Add all of a team's players' values together, then subtract from the team budget of $200.

I run a relatively complicated 10-team dynastic contract league on Sleeper.app. Currently, I use a series of Google Sheets to manage contract lengths, player values, team budgets, etc. Here's a viewable copy of the spreadsheet: https://docs.google.com/spreadsheets/d/1nMVwXi9Vl34TdzprooGMHdlUWRlnaIRJVcX5PzmnzmU/edit?usp=sharing. While I can pull most of the information via the Sleeper API, I've read the Sleeper API documentation from front to back. I can't get player values without manually inputting them or using a web scraper.

I am starting to build an app to help manage all of this, and I understand Python is the best way to handle this. Usually, I update each team's player values and budget about a month before our rookie draft, but I would like to keep each team's budget up to date on at least a weekly basis to make this process less of a grind for me.

Some background: I am a front-end developer and designer who is very comfortable with command lines on a Mac or a PC. I have experience running Docker and built a simple web scraper 9 or 10 years ago.

forest hornetBOT
#

@latent hatch

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

forest hornetBOT
#

@latent hatch

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.