amarvin / fantasy-football-bot

Automate playing Yahoo Fantasy Football
MIT License
46 stars 9 forks source link

Scraper not finding all taken players? #31

Closed amarvin closed 3 years ago

amarvin commented 5 years ago

Seems to be consistently missing Auden Tate (31223) on my team, and a few others.

amarvin commented 5 years ago

Ah, it was scraping the taken players from the public league 39345. Scraping an arbitrary league won't work to find taken players first, as private leagues require authentication and authorization to view the https://football.fantasysports.yahoo.com/f1/<league>/players endpoint.

I had tried to only scrape the taken players and the top 25 available for each position to expedite the scraper, but I think the only solution is to scrape all player IDs from the public league.

amarvin commented 3 years ago

Reopening this, as the current implementation only scrapes the top 75 players for each position. This tends to leave out some players, especially WR.