Giter Site home page Giter Site logo

Comments (4)

rogersmark avatar rogersmark commented on July 17, 2024

Another note on this... We have to be a bit careful with how crazy we go with threading the scraper. I don't want to alert anyone to my presence if it's avoidable. Throwing everything onto a queue and having 2-4 workers in celery tackling scraping might be okay. Really would like to avoid getting a ban hammer if at all possible.

from mls-api.

dget avatar dget commented on July 17, 2024

Honestly, since there's not really that many games that need parsing (at least, not all at once), it might be not be so bad if it's just single threaded since it comes with the benefit of lying under the radar.

Another idea is to have an option to cache downloaded stats pages / run the scraper on them locally so you're not making a ton of requests while in dev.

from mls-api.

rogersmark avatar rogersmark commented on July 17, 2024

Totally agree, it's really low priority. Ideally, I'd like this to be extensible to the point it could cover other leagues (making the name of this project really piss poor). Other leagues would hopefully benefit from a parser that could handle multiple games at a time.

from mls-api.

rogersmark avatar rogersmark commented on July 17, 2024

You can now use the "-w" or "--workers" args to increase the number of threads. I don't really recommend going over 5, and think I've been throttled at 10 workers before. Anyways, makes crawling an entire past season a bit easier.

from mls-api.

Related Issues (10)

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.