Giter Site home page Giter Site logo

Comments (3)

tanho63 avatar tanho63 commented on July 19, 2024

Hey Tom, thanks for reaching out! I'll have a look - our DB is primarily based as a compilation of other APIs with a dose of name-merging. MFL and Sleeper both seem to have Rodgers listed as 3118 for rotoworld ID, which I agree is a little unhelpful!

I'll see what I can do to find a source/scrape for the right ID - may have to crawl Rotoworld which isn't super ideal.

from data.

tomweingarten avatar tomweingarten commented on July 19, 2024

I may have spoken too soon! It looks like there is a way to use the IDs in your database (like 3118) to retrieve players by using this URL: http://www.rotoworld.com/player/nfl/{PLAYER_ID}

It redirects you to the canonical URL, which has a different ID. From there, you can parse the javascript to get the third ID you need for AJAX calls by looking for the 'currentPath' property in the drupal-settings-json.

Thanks for putting this together!

from data.

tanho63 avatar tanho63 commented on July 19, 2024

Neat! I'll have to remember/save that in a documentation somewhere :)

from data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.