sharpchicity / sbrscraper Goto Github PK
View Code? Open in Web Editor NEWScript to scrape SBR's betting-odds site
Script to scrape SBR's betting-odds site
Minor error that has a major effect on the output.
On line 407
f.write('Game_ID,Date,Time_FG_ML,HA,Team,Team_SP,Team_SP_hand,Opp,Opp_SP,Opp_SP_hand)
you are missing a comma "," at the end of Opp_SP_hand which is causing this header to merge with the next header on line 408 and therefore all the columns after this one are off by one and shifted to the left.
Hi,
I'm getting an interesting issue where SBR will always redirect to a page that does not have the betting odds or OddsGridModule_3. Instead, it's hitting this page: http://imgur.com/6HFm1eV.
Any idea how or why it's redirecting me? This happens sometimes too when I just throw the url in FF. It will also change the url from
http://www.sportsbookreview.com/betting-odds/mlb-baseball/?date=20160406
to:
http://www.sportsbookreview.com/betting-odds/mlb-baseball/?date=20160406&
Thanks for the help!
Mike
Question for you, SharpChiCity - how did you find out about the SBR API? (I know this isn't an issue per se, and I'm happy to close/delete it soon, but I was really curious.)
When you hover mouse over "OPENER", the Bet % pops up. Any way to include this, specifically for spread lines? See: http://www.sportsbookreview.com/betting-odds/pointspread/ and hover over "OPENER" and you'll see percentage number just to the left of the OPENER column.
In the TODO list in the read me, you list the new URL from SBR. Do you know how you could change this to other sports? Right now it looks like it's only MLB events.
I suddenly got an error message in the soup_url function which was not occurring a week ago last time I used it; when scraping the url 'https://www.sportsbookreview.com/betting-odds/nba-basketball/money-line/?date=20210129' I get the following soup, which states the the request has been blocked:
<title>463 Restricted Client - DOSarrest Internet Security</title> <script> function id_process(n){for(var t=n+"=",r=document.cookie.split(";"),e=0;e
|
It seems like the site may have changed their security settings but I'm not sure if there's any way to fix this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.