GithubHelp home page GithubHelp logo

evansloan / sports.py Goto Github PK

View Code? Open in Web Editor NEW
59.0 7.0 17.0 79 KB

A simple Python package to gather live sports scores

License: MIT License

Python 98.12% Makefile 1.88%
python sports sports-stats football soccer hockey basketball baseball handball volleyball

sports.py's People

Contributors

evansloan 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sports.py's Issues

sports.errors.SportError: Sport not found for <sport>

I wished to try out this package and would like to try to implement it in a personal project but when I tried running some test inputs I keep getting this error message.

sportspytroubleshooting1

Here I tried to get all live matches currently. I checked scorespro (the site that this package is using to get XML data) and there are some live matches going on in basketball (I didn't check every sport, I wanted to make sure there was at least one live match ongoing) and this error gets thrown for baseball (I'm assuming it checks alphabetically and the error got thrown as soon as it came across baseball and didn't even reach the remaining sports.)

sportspytroubelshooting2

For the second test input, I tried to get the match object for a match, this one in particular. I got a similar error thrown but it was specifically for soccer this time. Could you look into this?

Cricket

The Cricket Part doesn't show any accurate info for some reason
Please fix

Doesn't work in the JVM

Hey there Package Maintainer,

Great library, cool concept. I keep trying to get this to work in Java but for some reason the JVM keeps complaining that it can't compile the library files. I was wondering if you knew of any way around this? I've tried compiling in other JVM languages like Kotlin and Ruby, but no luck. If you know of any ideas that could help I would appreciate it!

Python 2.7

I fixed the code, however, I am still receiving the error

ModuleNotFoundError: No module named 'sports'

This is because the file is in Python 2.7

I saw the earlier issue, however, the video Is no longer available. Could you post it again?

No attribute 'get_team_info'

While running the .py file

import sports

pirates = sports.get_team_info(sports.BASEBALL, 'pirates')
print(pirates.pennants)

penguins = sports.get_team_info(sports.HOCKEY, 'penguins')
print(penguins.points)

steelers = sports.get_team_info(sports.FOOTBALL, 'steelers')
print(steelers.super_bowls)

sixers = sports.get_team_info(sports.BASKETBALL, '76ers')
print(sixers.playoff_app)

I am getting the error

    pirates = sports.get_team_info(sports.BASEBALL, 'pirates')
AttributeError: module 'sports' has no attribute 'get_team_info'

How can I fix this?

No module named sports

Hi, I can't seem to import sports. I've gone through the installation process and I keep getting errors.

Live matches don't show up correctly?

I can't tell if it's me, but all the live matches that are displayed on
sports.all_matches()
are all finished. Maybe I'm using this incorrectly? Is there a way to figure out exactly what link it uses for data?

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.