GithubHelp home page GithubHelp logo

jamesquintero / sports-odds-algorithms Goto Github PK

View Code? Open in Web Editor NEW
85.0 16.0 29.0 23.22 MB

System that calculates and uses algorithms to predict the outcome of NBA, NHL, and MLB sports games.

Python 100.00%
sports-betting-formulas odds-calculator sports-stats

sports-odds-algorithms's People

Contributors

jamesquintero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sports-odds-algorithms's Issues

404 on request for jsonp

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?

error , dose it work well now?

[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

will not run

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?

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.