Comments (4)
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.
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.
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.
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)
- Add season flag to scraper HOT 1
- Add option for parser to parse all games in a season
- Scraper needs to more intelligently display errors HOT 1
- Put an API in front of all this data
- Deploy the site somewhere HOT 1
- MultipleObjectsReturned when retrieving players in 2012 scrape HOT 2
- Grab formation information HOT 1
- Substitution Event needs to FK to GamePlayers HOT 4
- Urls that fail to parse
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mls-api.