jamesquintero / sports-odds-algorithms Goto Github PK
View Code? Open in Web Editor NEWSystem that calculates and uses algorithms to predict the outcome of NBA, NHL, and MLB sports games.
System that calculates and uses algorithms to predict the outcome of NBA, NHL, and MLB sports games.
I am trying to scrape mlb data ,getting a response from this url http://fb.oddsportal.com/ajax-sport-country-tournament-archive/3/67blnzDc/X0/1/0/1/
of globals.jsonpCallback('/ajax-sport-country-tournament-archive/3/67blnzDc/X0/1/0/1/', {'e':'404'});
.
I did a little digging and could not figure it out. It seems as though the url at the source has changed to http://fb.oddsportal.com/ajax-sport-country-tournament-archive/6/67blnzDc/X0/1/0/1/
but that did not fix my issue. The source also appends a query string parameter named _
with the milliseconds since the UNIX epoch. This works in the browser for an arbitrary amount of time after the specified time in the parameter.
Am I missing something?
[18:30:21] User chose ['gs', 'golden-state-warriors']
Current season year: 2018
[18:30:25] Scraping game scores from http://espn.go.com/nba/team/schedule/_/name/gs/year/2018/seasontype/2/golden-state-warriors
[18:31:58] scrape_game_scores(): (<class 'ValueError'>, 'espn_scraper.py', 351)
[18:31:58] Loading existing data
Traceback (most recent call last):
File ".\sports_bettor.py", line 366, in
sports_better.single_team_analysis()
File ".\sports_bettor.py", line 89, in single_team_analysis
odds_calculator.single_team_analysis(league_teams[choice])
File "C:\Users\HiTler\Desktop\Sports-Odds-Algorithms-master\odds_calculator.py", line 48, in single_team_analysis
self.espn_scraper.update_data(team, cur_year)
File "C:\Users\HiTler\Desktop\Sports-Odds-Algorithms-master\espn_scraper.py", line 174, in update_data
for y in range(0, len(existing_data['game_scores'])):
TypeError: list indices must be integers or slices, not str
When i try to run the code it tells me that it can't find main. When i do a ctrl+f search for a main file i can't find it either. did i do something wrong? how can it run without main?
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.