From e5f86460de9957879bbc938912eebfa71324be7c Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Fri, 13 Nov 2020 15:32:14 -0600 Subject: [PATCH] Change name to sportsipy To avoid confusion from users of the sports-reference website, this project needs to be renamed to something other than sportsreference, indicating it is not an official project. Signed-Off-By: Robert Clark --- .github/ISSUE_TEMPLATE/bug-report.md | 2 +- .github/workflows/pushtests.yml | 6 +- .gitignore | 2 +- CONTRIBUTING.md | 4 +- README.rst | 68 +++++++++---------- docs/Makefile | 2 +- docs/conf.py | 12 ++-- docs/examples.rst | 10 +-- docs/fb.rst | 18 ++--- docs/index.rst | 28 ++++---- docs/installation.rst | 14 ++-- docs/mlb.rst | 34 +++++----- docs/nba.rst | 34 +++++----- docs/ncaab.rst | 44 ++++++------ docs/ncaaf.rst | 44 ++++++------ docs/nfl.rst | 34 +++++----- docs/nhl.rst | 34 +++++----- docs/testing.rst | 4 +- setup.py | 6 +- {sportsreference => sportsipy}/__init__.py | 0 {sportsreference => sportsipy}/constants.py | 0 {sportsreference => sportsipy}/decorators.py | 0 {sportsreference => sportsipy}/fb/__init__.py | 0 .../fb/constants.py | 0 {sportsreference => sportsipy}/fb/fb_utils.py | 2 +- .../fb/league_ids.py | 0 {sportsreference => sportsipy}/fb/roster.py | 6 +- {sportsreference => sportsipy}/fb/schedule.py | 14 ++-- .../fb/squad_ids.py | 0 {sportsreference => sportsipy}/fb/team.py | 0 .../mlb/__init__.py | 0 .../mlb/boxscore.py | 0 .../mlb/constants.py | 0 .../mlb/mlb_utils.py | 2 +- {sportsreference => sportsipy}/mlb/player.py | 0 {sportsreference => sportsipy}/mlb/roster.py | 0 .../mlb/schedule.py | 18 ++--- {sportsreference => sportsipy}/mlb/teams.py | 0 .../nba/__init__.py | 0 .../nba/boxscore.py | 0 .../nba/constants.py | 0 .../nba/nba_utils.py | 2 +- {sportsreference => sportsipy}/nba/player.py | 0 {sportsreference => sportsipy}/nba/roster.py | 0 .../nba/schedule.py | 18 ++--- {sportsreference => sportsipy}/nba/teams.py | 0 .../ncaab/__init__.py | 0 .../ncaab/boxscore.py | 0 .../ncaab/conferences.py | 0 .../ncaab/constants.py | 0 .../ncaab/ncaab_utils.py | 2 +- .../ncaab/player.py | 0 .../ncaab/rankings.py | 0 .../ncaab/roster.py | 0 .../ncaab/schedule.py | 20 +++--- {sportsreference => sportsipy}/ncaab/teams.py | 0 .../ncaaf/__init__.py | 0 .../ncaaf/boxscore.py | 0 .../ncaaf/conferences.py | 0 .../ncaaf/constants.py | 0 .../ncaaf/ncaaf_utils.py | 2 +- .../ncaaf/player.py | 0 .../ncaaf/rankings.py | 0 .../ncaaf/roster.py | 0 .../ncaaf/schedule.py | 20 +++--- {sportsreference => sportsipy}/ncaaf/teams.py | 0 .../nfl/__init__.py | 0 .../nfl/boxscore.py | 0 .../nfl/constants.py | 0 .../nfl/nfl_utils.py | 2 +- {sportsreference => sportsipy}/nfl/player.py | 0 {sportsreference => sportsipy}/nfl/roster.py | 0 .../nfl/schedule.py | 30 ++++---- {sportsreference => sportsipy}/nfl/teams.py | 0 .../nhl/__init__.py | 0 .../nhl/boxscore.py | 0 .../nhl/constants.py | 0 .../nhl/nhl_utils.py | 2 +- {sportsreference => sportsipy}/nhl/player.py | 0 {sportsreference => sportsipy}/nhl/roster.py | 0 .../nhl/schedule.py | 20 +++--- {sportsreference => sportsipy}/nhl/teams.py | 0 {sportsreference => sportsipy}/utils.py | 2 +- tests/exhaustive/fb_tests.py | 4 +- tests/exhaustive/mlb_tests.py | 2 +- tests/exhaustive/nba_tests.py | 2 +- tests/exhaustive/ncaab_tests.py | 6 +- tests/exhaustive/ncaaf_tests.py | 6 +- tests/exhaustive/nfl_tests.py | 2 +- tests/exhaustive/nhl_tests.py | 2 +- .../boxscore/mlb/BOS201806070.shtml | 2 +- .../boxscore/mlb/boxscore-7-17-2017.html | 2 +- .../boxscore/mlb/boxscore-7-18-2017.html | 2 +- .../boxscore/nba/201710310LAL.html | 2 +- .../boxscore/nba/boxscores-2-4-2017.html | 2 +- .../boxscore/nba/boxscores-2-5-2017.html | 2 +- .../boxscore/ncaab/2017-11-24-21-purdue.html | 2 +- .../boxscore/ncaab/boxscores-11-11-2017.html | 2 +- .../boxscore/ncaab/boxscores-11-12-2017.html | 2 +- .../boxscore/ncaaf/2018-01-08-georgia.html | 2 +- .../boxscore/ncaaf/boxscores-8-30-2017.html | 2 +- .../boxscore/ncaaf/boxscores-8-31-2017.html | 2 +- .../boxscore/nfl/201802040nwe.html | 2 +- .../boxscore/nfl/boxscores-7-2017.html | 2 +- .../boxscore/nfl/boxscores-8-2017.html | 2 +- .../boxscore/nhl/201806070VEG.html | 2 +- .../boxscore/nhl/boxscores-2-4-2017.html | 2 +- .../boxscore/nhl/boxscores-2-5-2017.html | 2 +- .../integration/boxscore/test_mlb_boxscore.py | 8 +-- .../integration/boxscore/test_nba_boxscore.py | 8 +-- .../boxscore/test_ncaab_boxscore.py | 8 +-- .../boxscore/test_ncaaf_boxscore.py | 8 +-- .../integration/boxscore/test_nfl_boxscore.py | 8 +-- .../integration/boxscore/test_nhl_boxscore.py | 8 +-- .../conferences/ncaab/2018-big-12.html | 2 +- .../conferences/ncaab/2018-big-east.html | 2 +- tests/integration/conferences/ncaab/2018.html | 2 +- .../conferences/ncaaf/2018-acc.html | 2 +- .../conferences/ncaaf/2018-sec.html | 2 +- tests/integration/conferences/ncaaf/2018.html | 2 +- .../conferences/test_ncaab_conferences.py | 4 +- .../conferences/test_ncaaf_conferences.py | 4 +- .../rankings/ncaab/2018-polls.html | 2 +- .../rankings/ncaaf/2017-polls.html | 2 +- .../rankings/test_ncaab_rankings.py | 4 +- .../rankings/test_ncaaf_rankings.py | 4 +- .../fb/tottenham-hotspur-2019-2020.html | 2 +- tests/integration/roster/mlb/2017.shtml | 2 +- tests/integration/roster/mlb/altuvjo01.shtml | 2 +- tests/integration/roster/mlb/verlaju01.shtml | 2 +- tests/integration/roster/nba/2018.html | 2 +- tests/integration/roster/nba/anderry01.html | 20 +++--- tests/integration/roster/nba/arizatr01.html | 42 ++++++------ tests/integration/roster/nba/blackta01.html | 4 +- tests/integration/roster/nba/hardeja01.html | 66 +++++++++--------- tests/integration/roster/nba/youngtr01.html | 2 +- tests/integration/roster/ncaab/2018.html | 2 +- .../roster/ncaab/carsen-edwards-1.html | 12 ++-- .../roster/ncaab/isaac-haas-1.html | 6 +- .../roster/ncaab/vince-edwards-2.html | 10 +-- .../integration/roster/ncaaf/2018-roster.html | 2 +- .../roster/ncaaf/brycen-hopkins-1.html | 2 +- .../roster/ncaaf/david-blough-1.html | 2 +- .../roster/ncaaf/jd-dillinger-1.html | 2 +- tests/integration/roster/nfl/2018_roster.htm | 2 +- tests/integration/roster/nfl/BreeDr00.htm | 2 +- tests/integration/roster/nfl/DaviDe00.htm | 2 +- tests/integration/roster/nfl/HatfDo00.htm | 2 +- tests/integration/roster/nfl/LewiTo00.htm | 2 +- tests/integration/roster/nfl/LutzWi00.htm | 2 +- tests/integration/roster/nfl/MorsTh00.htm | 2 +- tests/integration/roster/nhl/2018.html | 2 +- tests/integration/roster/nhl/howarja02.html | 2 +- tests/integration/roster/nhl/zettehe01.html | 2 +- tests/integration/roster/test_fb_roster.py | 2 +- tests/integration/roster/test_mlb_roster.py | 6 +- tests/integration/roster/test_nba_roster.py | 8 +-- tests/integration/roster/test_ncaab_roster.py | 6 +- tests/integration/roster/test_ncaaf_roster.py | 6 +- tests/integration/roster/test_nfl_roster.py | 6 +- tests/integration/roster/test_nhl_roster.py | 6 +- .../fb_stats/tottenham-hotspur-2019-2020.html | 2 +- .../schedule/mlb/2017-schedule-scores.html | 2 +- .../integration/schedule/nba/2017_games.html | 2 +- .../schedule/ncaab/2018-schedule.html | 2 +- .../schedule/ncaaf/2017-schedule.html | 2 +- tests/integration/schedule/nfl/gamelog | 2 +- .../schedule/nhl/2017_gamelog.html | 2 +- .../integration/schedule/test_fb_schedule.py | 6 +- .../integration/schedule/test_mlb_schedule.py | 10 +-- .../integration/schedule/test_nba_schedule.py | 10 +-- .../schedule/test_ncaab_schedule.py | 10 +-- .../schedule/test_ncaaf_schedule.py | 10 +-- .../integration/schedule/test_nfl_schedule.py | 10 +-- .../integration/schedule/test_nhl_schedule.py | 10 +-- .../fb_stats/tottenham-hotspur-2019-2020.html | 2 +- tests/integration/team/test_fb_team.py | 2 +- .../teams/mlb_stats/2017-standings.html | 2 +- tests/integration/teams/mlb_stats/2017.html | 2 +- .../integration/teams/nba_stats/NBA_2017.html | 2 +- .../2018-advanced-opponent-stats.html | 2 +- .../2018-advanced-school-stats.html | 2 +- .../ncaab_stats/2018-opponent-stats.html | 2 +- .../teams/ncaab_stats/2018-school-stats.html | 2 +- .../teams/ncaaf_stats/2017-standings.html | 2 +- .../teams/ncaaf_stats/2017-team-defense.html | 2 +- .../teams/ncaaf_stats/2017-team-offense.html | 2 +- tests/integration/teams/nfl_stats/2017.html | 2 +- .../integration/teams/nhl_stats/NHL_2017.html | 2 +- .../integration/teams/test_mlb_integration.py | 6 +- .../integration/teams/test_nba_integration.py | 6 +- .../teams/test_ncaab_integration.py | 14 ++-- .../teams/test_ncaaf_integration.py | 12 ++-- .../integration/teams/test_nfl_integration.py | 8 +-- .../integration/teams/test_nhl_integration.py | 6 +- tests/unit/test_fb_roster.py | 2 +- tests/unit/test_fb_schedule.py | 14 ++-- tests/unit/test_fb_team.py | 6 +- tests/unit/test_fb_utils.py | 6 +- tests/unit/test_mlb_boxscore.py | 8 +-- tests/unit/test_mlb_roster.py | 6 +- tests/unit/test_mlb_schedule.py | 12 ++-- tests/unit/test_mlb_teams.py | 4 +- tests/unit/test_nba_boxscore.py | 6 +- tests/unit/test_nba_roster.py | 6 +- tests/unit/test_nba_schedule.py | 10 +-- tests/unit/test_nba_teams.py | 4 +- tests/unit/test_nba_utils.py | 4 +- tests/unit/test_ncaab_boxscore.py | 6 +- tests/unit/test_ncaab_roster.py | 6 +- tests/unit/test_ncaab_schedule.py | 28 ++++---- tests/unit/test_ncaab_teams.py | 4 +- tests/unit/test_ncaaf_boxscore.py | 8 +-- tests/unit/test_ncaaf_roster.py | 4 +- tests/unit/test_ncaaf_schedule.py | 18 ++--- tests/unit/test_ncaaf_teams.py | 4 +- tests/unit/test_nfl_boxscore.py | 6 +- tests/unit/test_nfl_roster.py | 4 +- tests/unit/test_nfl_schedule.py | 26 +++---- tests/unit/test_nfl_teams.py | 4 +- tests/unit/test_nhl_boxscore.py | 6 +- tests/unit/test_nhl_roster.py | 4 +- tests/unit/test_nhl_schedule.py | 18 ++--- tests/unit/test_nhl_teams.py | 4 +- tests/unit/test_utils.py | 2 +- 225 files changed, 672 insertions(+), 672 deletions(-) rename {sportsreference => sportsipy}/__init__.py (100%) rename {sportsreference => sportsipy}/constants.py (100%) rename {sportsreference => sportsipy}/decorators.py (100%) rename {sportsreference => sportsipy}/fb/__init__.py (100%) rename {sportsreference => sportsipy}/fb/constants.py (100%) rename {sportsreference => sportsipy}/fb/fb_utils.py (98%) rename {sportsreference => sportsipy}/fb/league_ids.py (100%) rename {sportsreference => sportsipy}/fb/roster.py (99%) rename {sportsreference => sportsipy}/fb/schedule.py (98%) rename {sportsreference => sportsipy}/fb/squad_ids.py (100%) rename {sportsreference => sportsipy}/fb/team.py (100%) rename {sportsreference => sportsipy}/mlb/__init__.py (100%) rename {sportsreference => sportsipy}/mlb/boxscore.py (100%) rename {sportsreference => sportsipy}/mlb/constants.py (100%) rename {sportsreference => sportsipy}/mlb/mlb_utils.py (99%) rename {sportsreference => sportsipy}/mlb/player.py (100%) rename {sportsreference => sportsipy}/mlb/roster.py (100%) rename {sportsreference => sportsipy}/mlb/schedule.py (97%) rename {sportsreference => sportsipy}/mlb/teams.py (100%) rename {sportsreference => sportsipy}/nba/__init__.py (100%) rename {sportsreference => sportsipy}/nba/boxscore.py (100%) rename {sportsreference => sportsipy}/nba/constants.py (100%) rename {sportsreference => sportsipy}/nba/nba_utils.py (99%) rename {sportsreference => sportsipy}/nba/player.py (100%) rename {sportsreference => sportsipy}/nba/roster.py (100%) rename {sportsreference => sportsipy}/nba/schedule.py (97%) rename {sportsreference => sportsipy}/nba/teams.py (100%) rename {sportsreference => sportsipy}/ncaab/__init__.py (100%) rename {sportsreference => sportsipy}/ncaab/boxscore.py (100%) rename {sportsreference => sportsipy}/ncaab/conferences.py (100%) rename {sportsreference => sportsipy}/ncaab/constants.py (100%) rename {sportsreference => sportsipy}/ncaab/ncaab_utils.py (99%) rename {sportsreference => sportsipy}/ncaab/player.py (100%) rename {sportsreference => sportsipy}/ncaab/rankings.py (100%) rename {sportsreference => sportsipy}/ncaab/roster.py (100%) rename {sportsreference => sportsipy}/ncaab/schedule.py (97%) rename {sportsreference => sportsipy}/ncaab/teams.py (100%) rename {sportsreference => sportsipy}/ncaaf/__init__.py (100%) rename {sportsreference => sportsipy}/ncaaf/boxscore.py (100%) rename {sportsreference => sportsipy}/ncaaf/conferences.py (100%) rename {sportsreference => sportsipy}/ncaaf/constants.py (100%) rename {sportsreference => sportsipy}/ncaaf/ncaaf_utils.py (99%) rename {sportsreference => sportsipy}/ncaaf/player.py (100%) rename {sportsreference => sportsipy}/ncaaf/rankings.py (100%) rename {sportsreference => sportsipy}/ncaaf/roster.py (100%) rename {sportsreference => sportsipy}/ncaaf/schedule.py (97%) rename {sportsreference => sportsipy}/ncaaf/teams.py (100%) rename {sportsreference => sportsipy}/nfl/__init__.py (100%) rename {sportsreference => sportsipy}/nfl/boxscore.py (100%) rename {sportsreference => sportsipy}/nfl/constants.py (100%) rename {sportsreference => sportsipy}/nfl/nfl_utils.py (98%) rename {sportsreference => sportsipy}/nfl/player.py (100%) rename {sportsreference => sportsipy}/nfl/roster.py (100%) rename {sportsreference => sportsipy}/nfl/schedule.py (96%) rename {sportsreference => sportsipy}/nfl/teams.py (100%) rename {sportsreference => sportsipy}/nhl/__init__.py (100%) rename {sportsreference => sportsipy}/nhl/boxscore.py (100%) rename {sportsreference => sportsipy}/nhl/constants.py (100%) rename {sportsreference => sportsipy}/nhl/nhl_utils.py (98%) rename {sportsreference => sportsipy}/nhl/player.py (100%) rename {sportsreference => sportsipy}/nhl/roster.py (100%) rename {sportsreference => sportsipy}/nhl/schedule.py (97%) rename {sportsreference => sportsipy}/nhl/teams.py (100%) rename {sportsreference => sportsipy}/utils.py (99%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 6b68f8c7..af368228 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -22,7 +22,7 @@ If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. Ubuntu 18.04] - - Sportsreference Version [e.g. 0.2.0 or commit hash if using code] + - Sportsipy Version: [e.g. 0.6.0 or commit hash if using code] **Additional context** Add any other context about the problem here. If applicable, also include links to any pages on www.sports-reference.com that are believed to be causing this issue. diff --git a/.github/workflows/pushtests.yml b/.github/workflows/pushtests.yml index d18c0a71..b055e980 100644 --- a/.github/workflows/pushtests.yml +++ b/.github/workflows/pushtests.yml @@ -1,4 +1,4 @@ -name: Sportsreference push tests +name: Sportsipy push tests on: [push, pull_request] @@ -23,10 +23,10 @@ jobs: pip install -r requirements.txt - name: Run unit and integration tests with pytest run: | - py.test --cov=sportsreference --cov-report term-missing --cov-report xml tests/integration/ tests/unit/ + py.test --cov=sportsipy --cov-report term-missing --cov-report xml tests/integration/ tests/unit/ - name: Lint with pycodestyle run: | - pycodestyle sportsreference/ tests/integration/ tests/unit/ + pycodestyle sportsipy/ tests/integration/ tests/unit/ - name: Upload coverage to Codecov if: matrix.operating-system == 'ubuntu-latest' && matrix.python-version == '3.8' uses: codecov/codecov-action@v1.0.13 diff --git a/.gitignore b/.gitignore index 3bce2630..bf0978cc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ # Building files build* dist* -sportsreference.egg-info* +sportsipy.egg-info* # VirtualEnv bin/* diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bc950a1a..0e72f67c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ # Contributing -`Sportsreference` is an open-source project created for the community where +`Sportsipy` is an open-source project created for the community where contributions are encouraged. I ask that anyone who wishes to contribute to please read and follow the guidelines listed below. As the project grows and changes, so too will this document. If any items are no longer relevant or need @@ -13,7 +13,7 @@ Code of Conduct should be reported to the project maintainers. ## How Can I Contribute? Contributions from the community make open-source projects awesome and developers, data scientists, hobbyists, and more are encouraged to contribute to -`sportsreference`. The following are some examples on how to contribute to this +`sportsipy`. The following are some examples on how to contribute to this project. ### Reporting bugs diff --git a/README.rst b/README.rst index 09c234a7..50148518 100644 --- a/README.rst +++ b/README.rst @@ -1,22 +1,22 @@ -Sportsreference: A free sports API written for python -###################################################### -.. image:: https://github.com/roclark/sportsreference/workflows/Sportsreference%20push%20tests/badge.svg - :target: https://github.com/roclark/sportsreference/actions -.. image:: https://readthedocs.org/projects/sportsreference/badge/?version=latest - :target: https://sportsreference.readthedocs.io/en/latest/?badge=latest +Sportsipy: A free sports API written for python +############################################### +.. image:: https://github.com/roclark/sportsipy/workflows/Sportsipy%20push%20tests/badge.svg + :target: https://github.com/roclark/sportsipy/actions +.. image:: https://readthedocs.org/projects/sportsipy/badge/?version=latest + :target: https://sportsipy.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status -.. image:: https://img.shields.io/pypi/v/sportsreference.svg - :target: https://pypi.org/project/sportsreference +.. image:: https://img.shields.io/pypi/v/sportsipy.svg + :target: https://pypi.org/project/sportsipy .. contents:: -Sportsreference is a free python API that pulls the stats from +Sportsipy is a free python API that pulls the stats from www.sports-reference.com and allows them to be easily be used in python-based applications, especially ones involving data analytics and machine learning. -Sportsreference exposes a plethora of sports information from major sports +Sportsipy exposes a plethora of sports information from major sports leagues in North America, such as the MLB, NBA, College Football and Basketball, -NFL, and NHL. Sportsreference also now supports Professional Football (or +NFL, and NHL. Sportsipy also now supports Professional Football (or Soccer) for thousands of teams from leagues around the world. Every sport has its own set of valid API queries ranging from the list of teams in a league, to the date and time of a game, to the total number of wins a team has secured @@ -26,24 +26,24 @@ picture of how a team has performed during a game or throughout a season. Installation ============ -The easiest way to install `sportsreference` is by downloading the latest +The easiest way to install `sportsipy` is by downloading the latest released binary from PyPI using PIP. For instructions on installing PIP, visit `PyPA.io `_ for detailed steps on installing the package manager for your local environment. Next, run:: - pip install sportsreference + pip install sportsipy -to download and install the latest official release of `sportsreference` on -your machine. You now have the latest stable version of `sportsreference` +to download and install the latest official release of `sportsipy` on +your machine. You now have the latest stable version of `sportsipy` installed and can begin using it following the examples below! -If the bleeding-edge version of `sportsreference` is desired, clone this +If the bleeding-edge version of `sportsipy` is desired, clone this repository using git and install all of the package requirements with PIP:: - git clone https://github.com/roclark/sportsreference - cd sportsreference + git clone https://github.com/roclark/sportsipy + cd sportsipy pip install -r requirements.txt Once complete, create a Python wheel for your default version of Python by @@ -62,8 +62,8 @@ Examples The following are a few examples showcasing how easy it can be to collect an abundance of metrics and information from all of the tracked leagues. The examples below are only a miniscule subset of the total number of statistics -that can be pulled using sportsreference. Visit the documentation on -`Read The Docs `_ for a +that can be pulled using sportsipy. Visit the documentation on +`Read The Docs `_ for a complete list of all information exposed by the API. Get instances of all NHL teams for the 2018 season @@ -71,7 +71,7 @@ Get instances of all NHL teams for the 2018 season .. code-block:: python - from sportsreference.nhl.teams import Teams + from sportsipy.nhl.teams import Teams teams = Teams(2018) @@ -80,7 +80,7 @@ Print every NBA team's name and abbreviation .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams teams = Teams() for team in teams: @@ -91,7 +91,7 @@ Get a specific NFL team's season information .. code-block:: python - from sportsreference.nfl.teams import Teams + from sportsipy.nfl.teams import Teams teams = Teams() lions = teams('DET') @@ -101,7 +101,7 @@ Print the date of every game for a NCAA Men's Basketball team .. code-block:: python - from sportsreference.ncaab.schedule import Schedule + from sportsipy.ncaab.schedule import Schedule purdue_schedule = Schedule('purdue') for game in purdue_schedule: @@ -112,7 +112,7 @@ Print the number of interceptions by the away team in a NCAA Football game .. code-block:: python - from sportsreference.ncaaf.boxscore import Boxscore + from sportsipy.ncaaf.boxscore import Boxscore championship_game = Boxscore('2018-01-08-georgia') print(championship_game.away_interceptions) @@ -122,7 +122,7 @@ Get a Pandas DataFrame of all stats for a MLB game .. code-block:: python - from sportsreference.mlb.boxscore import Boxscore + from sportsipy.mlb.boxscore import Boxscore game = Boxscore('BOS201806070') df = game.dataframe @@ -132,7 +132,7 @@ Find the number of goals a football team has scored .. code-block:: python - from sportsreference.fb.team import Team + from sportsipy.fb.team import Team tottenham = Team('Tottenham Hotspur') print(tottenham.goals_scored) @@ -140,26 +140,26 @@ Find the number of goals a football team has scored Documentation ============= -Two blog posts detailing the creation and basic usage of `sportsreference` can +Two blog posts detailing the creation and basic usage of `sportsipy` can be found on The Medium at the following links: - `Part 1: Creating a public sports API `_ - `Part 2: Pull any sports metric in 10 lines of Python `_ The second post in particular is a great guide for getting started with -`sportsreference` and is highly recommended for anyone who is new to the +`sportsipy` and is highly recommended for anyone who is new to the package. Complete documentation is hosted on -`readthedocs.org `_. Refer to +`readthedocs.org `_. Refer to the documentation for a full list of all metrics and information exposed by -sportsreference. The documentation is auto-generated using Sphinx based on the -docstrings in the sportsreference package. +sportsipy. The documentation is auto-generated using Sphinx based on the +docstrings in the sportsipy package. Testing ======= -Sportsreference contains a testing suite which aims to test all major portions +Sportsipy contains a testing suite which aims to test all major portions of code for proper functionality. To run the test suite against your environment, ensure all of the requirements are installed by running:: @@ -169,7 +169,7 @@ Next, start the tests by running py.test while optionally including coverage flags which identify the amount of production code covered by the testing framework:: - py.test --cov=sportsreference --cov-report term-missing tests/ + py.test --cov=sportsipy --cov-report term-missing tests/ If the tests were successful, it will return a green line will show a message at the end of the output similar to the following:: diff --git a/docs/Makefile b/docs/Makefile index f3d88b42..2a2c8eb5 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -4,7 +4,7 @@ # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build -SPHINXPROJ = sportsreference +SPHINXPROJ = sportsipy SOURCEDIR = . BUILDDIR = _build diff --git a/docs/conf.py b/docs/conf.py index f0b019c7..89fab1d5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ # -- Project information ----------------------------------------------------- -project = u'sportsreference' +project = u'sportsipy' copyright = u'2018, Robert Clark' author = u'Robert Clark' @@ -109,7 +109,7 @@ # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. -htmlhelp_basename = 'sportsreferencedoc' +htmlhelp_basename = 'sportsipydoc' # -- Options for LaTeX output ------------------------------------------------ @@ -136,7 +136,7 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'sportsreference.tex', u'sportsreference Documentation', + (master_doc, 'sportsipy.tex', u'sportsipy Documentation', u'Author', 'manual'), ] @@ -146,7 +146,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'sportsreference', u'sportsreference Documentation', + (master_doc, 'sportsipy', u'sportsipy Documentation', [author], 1) ] @@ -157,8 +157,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'sportsreference', u'sportsreference Documentation', - author, 'sportsreference', 'One line description of project.', + (master_doc, 'sportsipy', u'sportsipy Documentation', + author, 'sportsipy', 'One line description of project.', 'Miscellaneous'), ] diff --git a/docs/examples.rst b/docs/examples.rst index 6e703c76..031f82d4 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -2,14 +2,14 @@ Examples ======== Thanks to the broad range of metrics that are pulled from sports-reference.com, -there are multiple ways you can use the `sportsreference` package. This page has +there are multiple ways you can use the `sportsipy` package. This page has multiple examples beyond those listed on the home page to demonstrate some cool things you can do which leverage the tool. This page is by no means exhaustive and the examples aren't necessarily the most efficient in the hope of providing the most clarity. In general, most examples shown for a specific sport are applicable for all -sports currently supported by `sportsreference`. +sports currently supported by `sportsipy`. Finding Tallest Players ----------------------- @@ -18,7 +18,7 @@ and height in inches. .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams def get_height_in_inches(height): feet, inches = height.split('-') @@ -52,7 +52,7 @@ Save the combined stats for each team to both a CSV and Pickle file. .. code-block:: python - from sportsreference.ncaab.teams import Teams + from sportsipy.ncaab.teams import Teams for team in Teams(): team.dataframe.to_csv('%s.csv' % team.abbreviation.lower()) @@ -65,7 +65,7 @@ print their name and the win total. .. code-block:: python - from sportsreference.mlb.teams import Teams + from sportsipy.mlb.teams import Teams def print_most_wins(year, wins): most_wins = max(wins, key=wins.get) diff --git a/docs/fb.rst b/docs/fb.rst index 5cd44101..d797b157 100644 --- a/docs/fb.rst +++ b/docs/fb.rst @@ -12,7 +12,7 @@ The Team module is used to grab high-level stats and information for a specific team. Information ranges from the team's primary competition, their position and point value in the league, plus goals scored, and much more. The easiest way to instantiate a team object is to pass a squad's 8-digit ID number to the class. -Squad IDs can either be found in the ``sportsreference.fb.squad_ids`` +Squad IDs can either be found in the ``sportsipy.fb.squad_ids`` dictionary, or by using one of the utility functions listed below. Alternatively, the team name can be used while calling the class and the @@ -21,14 +21,14 @@ example of pulling information on Tottenham Hotspur. .. code-block:: python - from sportsreference.fb.team import Team + from sportsipy.fb.team import Team tottenham = Team('Tottenham Hotspur') # Equivalent to Team('361ca564') print(tottenham.league) # Prints 'Premier League' print(tottenham.goals_scored) # Prints 47 print(tottenham.home_record) # Prints 8-2-4 -.. automodule:: sportsreference.fb.team +.. automodule:: sportsipy.fb.team :members: :undoc-members: :show-inheritance: @@ -43,7 +43,7 @@ the schedule and iterating over the games for Tottenham Hotspur. .. code-block:: python - from sportsreference.fb.schedule import Schedule + from sportsipy.fb.schedule import Schedule tottenham_schedule = Schedule('Tottenham Hotspur') print(len(tottenham_schedule)) # Prints 52 for the total number of games @@ -56,13 +56,13 @@ The Schedule module can also be accessed from the Team class. .. code-block:: python - from sportsreference.fb.team import Team + from sportsipy.fb.team import Team tottenham = Schedule('Tottenham Hotspur') for game in tottenham.schedule: print(game.datetime) # Prints the datetime for each game -.. automodule:: sportsreference.fb.schedule +.. automodule:: sportsipy.fb.schedule :members: :undoc-members: :show-inheritance: @@ -78,7 +78,7 @@ for Tottenham Hotspur and querying stats: .. code-block:: python - from sportsreference.fb.roster import Roster + from sportsipy.fb.roster import Roster tottenham = Roster('Tottenham Hotspur') for player in tottenham: @@ -92,14 +92,14 @@ or unique player ID: .. code-block:: python - from sportsreference.fb.roster import Roster + from sportsipy.fb.roster import Roster tottenham = Roster('Tottenham Hotspur') harry_kane = tottenham('Harry Kane') # Pulls Harry Kane's stats print(harry_kane.goals) # Prints Harry's goals print(harry_kane.assists) # Prints Harry's assists -.. automodule:: sportsreference.fb.roster +.. automodule:: sportsipy.fb.roster :members: :undoc-members: :show-inheritance: diff --git a/docs/index.rst b/docs/index.rst index 9b0ddd0b..3bf2ee58 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,11 +1,11 @@ -Sportsreference: A free sports API written for python -###################################################### +Sportsipy: A free sports API written for python +############################################### -Sportsreference is a free python API that pulls the stats from +Sportsipy is a free python API that pulls the stats from www.sports-reference.com and allows them to be easily be used in python-based applications, especially ones involving data analytics and machine learning. -Sportsreference exposes a plethora of sports information from major sports +Sportsipy exposes a plethora of sports information from major sports leagues in North America, such as the MLB, NBA, College Football and Basketball, NFL, and NHL. Every sport has its own set of valid API queries ranging from the list of teams in a league, to the date and time of a game, to the total number @@ -19,8 +19,8 @@ Examples The following are a few examples showcasing how easy it can be to collect an abundance of metrics and information from all of the tracked leagues. The examples below are only a miniscule subset of the total number of statistics -that can be pulled using sportsreference. Visit the documentation on -`Read The Docs `_ for a +that can be pulled using sportsipy. Visit the documentation on +`Read The Docs `_ for a complete list of all information exposed by the API. Get instances of all NHL teams for the 2018 season @@ -28,7 +28,7 @@ Get instances of all NHL teams for the 2018 season .. code-block:: python - from sportsreference.nhl.teams import Teams + from sportsipy.nhl.teams import Teams teams = Teams(2018) @@ -37,7 +37,7 @@ Print every NBA team's name and abbreviation .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams teams = Teams() for team in teams: @@ -48,7 +48,7 @@ Get a specific NFL team's season information .. code-block:: python - from sportsreference.nfl.teams import Teams + from sportsipy.nfl.teams import Teams teams = Teams() lions = teams('DET') @@ -58,7 +58,7 @@ Print the date of every game for a NCAA Men's Basketball team .. code-block:: python - from sportsreference.ncaab.schedule import Schedule + from sportsipy.ncaab.schedule import Schedule purdue_schedule = Schedule('purdue') for game in purdue_schedule: @@ -69,7 +69,7 @@ Print the number of interceptions by the away team in a NCAA Football game .. code-block:: python - from sportsreference.ncaaf.boxscore import Boxscore + from sportsipy.ncaaf.boxscore import Boxscore championship_game = Boxscore('2018-01-08-georgia') print(championship_game.away_interceptions) @@ -79,7 +79,7 @@ Get a Pandas DataFrame of all stats for a MLB game .. code-block:: python - from sportsreference.mlb.boxscore import Boxscore + from sportsipy.mlb.boxscore import Boxscore game = Boxscore('BOS201806070') df = game.dataframe @@ -89,7 +89,7 @@ Find the number of goals a football team has scored .. code-block:: python - from sportsreference.fb.team import Team + from sportsipy.fb.team import Team tottenham = Team('Tottenham Hotspur') print(tottenham.goals_scored) @@ -98,7 +98,7 @@ Find the number of goals a football team has scored :maxdepth: 4 :caption: Contents: - sportsreference + sportsipy examples installation testing diff --git a/docs/installation.rst b/docs/installation.rst index 815a537d..71218355 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -1,24 +1,24 @@ Installation ============ -The easiest way to install `sportsreference` is by downloading the latest +The easiest way to install `sportsipy` is by downloading the latest released binary from PyPI using PIP. For instructions on installing PIP, visit `PyPA.io `_ for detailed steps on installing the package manager for your local environment. Next, run:: - pip install sportsreference + pip install sportsipy -to download and install the latest official release of `sportsreference` on -your machine. You now have the latest stable version of `sportsreference` +to download and install the latest official release of `sportsipy` on +your machine. You now have the latest stable version of `sportsipy` installed and can begin using it following the examples! -If the bleeding-edge version of `sportsreference` is desired, clone this +If the bleeding-edge version of `sportsipy` is desired, clone this repository using git and install all of the package requirements with PIP:: - git clone https://github.com/roclark/sportsreference - cd sportsreference + git clone https://github.com/roclark/sportsipy + cd sportsipy pip install -r requirements.txt Once complete, create a Python wheel for your default version of Python by diff --git a/docs/mlb.rst b/docs/mlb.rst index 69ec16cd..130503cd 100644 --- a/docs/mlb.rst +++ b/docs/mlb.rst @@ -17,7 +17,7 @@ retrieving game-specific information). .. code-block:: python - from sportsreference.mlb.boxscore import Boxscore + from sportsipy.mlb.boxscore import Boxscore game_data = Boxscore('BOS/BOS201808020') print(game_data.home_runs) # Prints 15 @@ -32,7 +32,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python from datetime import datetime - from sportsreference.mlb.boxscore import Boxscores + from sportsipy.mlb.boxscore import Boxscores games_today = Boxscores(datetime.today()) print(games_today.games) # Prints a dictionary of all matchups for today @@ -45,14 +45,14 @@ end date as the second parameter. .. code-block:: python from datetime import datetime - from sportsreference.mlb.boxscore import Boxscores + from sportsipy.mlb.boxscore import Boxscores # Pulls all games between and including July 17, 2017 and July 20, 2017 games = Boxscores(datetime(2017, 7, 17), datetime(2017, 7, 20)) # Prints a dictionary of all results from July 17, 2017 and July 20, 2017 print(games.games) -.. automodule:: sportsreference.mlb.boxscore +.. automodule:: sportsipy.mlb.boxscore :members: :undoc-members: :show-inheritance: @@ -66,7 +66,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.mlb.player +.. automodule:: sportsipy.mlb.player :members: :undoc-members: :show-inheritance: @@ -82,7 +82,7 @@ career information for José Altuve. .. code-block:: python - from sportsreference.mlb.roster import Player + from sportsipy.mlb.roster import Player altuve = Player('altuvjo01') print(altuve.name) # Prints 'José Altuve' @@ -97,7 +97,7 @@ stats. .. code-block:: python - from sportsreference.mlb.roster import Player + from sportsipy.mlb.roster import Player altuve = Player('altuvjo01') # Currently pulling career stats print(altuve.hits) # Prints Altuve's CAREER hits total @@ -111,7 +111,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.mlb.roster import Player + from sportsipy.mlb.roster import Player altuve = Player('altuvjo01') # Currently pulling career stats # Prints Altuve's hits total only for the 2017 season @@ -125,7 +125,7 @@ easily queried. .. code-block:: python - from sportsreference.mlb.roster import Roster + from sportsipy.mlb.roster import Roster astros = Roster('HOU') for player in astros.players: @@ -133,7 +133,7 @@ easily queried. # recent season. print(player.name) -.. automodule:: sportsreference.mlb.roster +.. automodule:: sportsipy.mlb.roster :members: :undoc-members: :show-inheritance: @@ -148,7 +148,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.mlb.schedule import Schedule + from sportsipy.mlb.schedule import Schedule houston_schedule = Schedule('HOU') for game in houston_schedule: @@ -157,7 +157,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.mlb.schedule +.. automodule:: sportsipy.mlb.schedule :members: :undoc-members: :show-inheritance: @@ -171,7 +171,7 @@ number of bases they've stolen, and much more. .. code-block:: python - from sportsreference.mlb.teams import Teams + from sportsipy.mlb.teams import Teams teams = Teams() for team in teams: @@ -185,7 +185,7 @@ calling Team class. .. code-block:: python - from sportsreference.mlb.teams import Team + from sportsipy.mlb.teams import Team houston = Team('HOU') @@ -195,7 +195,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.mlb.teams import Teams + from sportsipy.mlb.teams import Teams teams = Teams() for team in teams: @@ -210,14 +210,14 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.mlb.teams import Teams + from sportsipy.mlb.teams import Teams for team in Teams(): roster = team.roster # Gets each team's roster for player in roster.players: print(player.name) # Prints each players name on the roster -.. automodule:: sportsreference.mlb.teams +.. automodule:: sportsipy.mlb.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/nba.rst b/docs/nba.rst index 7c8a37d8..f00612f8 100644 --- a/docs/nba.rst +++ b/docs/nba.rst @@ -17,7 +17,7 @@ retrieving game-specific information). .. code-block:: python - from sportsreference.nba.boxscore import Boxscore + from sportsipy.nba.boxscore import Boxscore game_data = Boxscore('201806080CLE') print(game_data.away_points) # Prints 108 @@ -32,7 +32,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python from datetime import datetime - from sportsreference.nba.boxscore import Boxscores + from sportsipy.nba.boxscore import Boxscores games_today = Boxscores(datetime.today()) print(games_today.games) # Prints a dictionary of all matchups for today @@ -45,7 +45,7 @@ end date as the second parameter. .. code-block:: python from datetime import datetime - from sportsreference.nba.boxscore import Boxscores + from sportsipy.nba.boxscore import Boxscores # Pulls all games between and including January 1, 2018 and January 5, 2018 games = Boxscores(datetime(2018, 1, 1), datetime(2018, 1, 5)) @@ -53,7 +53,7 @@ end date as the second parameter. # 2018 print(games.games) -.. automodule:: sportsreference.nba.boxscore +.. automodule:: sportsipy.nba.boxscore :members: :undoc-members: :show-inheritance: @@ -67,7 +67,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.nba.player +.. automodule:: sportsipy.nba.player :members: :undoc-members: :show-inheritance: @@ -83,7 +83,7 @@ career information for James Harden: .. code-block:: python - from sportsreference.nba.roster import Player + from sportsipy.nba.roster import Player james_harden = Player('hardeja01') print(james_harden.name) # Prints 'James Harden' @@ -100,7 +100,7 @@ stats. .. code-block:: python - from sportsreference.nba.roster import Player + from sportsipy.nba.roster import Player james_harden = Player('hardeja01') # Currently pulling career stats print(james_harden.points) # Prints Harden's CAREER points total @@ -114,7 +114,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.nba.roster import Player + from sportsipy.nba.roster import Player james_harden = Player('hardeja01') # Currently pulling career stats # Prints Harden's points total only for the 2017-18 season. @@ -128,7 +128,7 @@ easily queried. .. code-block:: python - from sportsreference.nba.roster import Roster + from sportsipy.nba.roster import Roster houston = Roster('HOU') for player in houston.players: @@ -136,7 +136,7 @@ easily queried. # recent season. print(player.name) -.. automodule:: sportsreference.nba.roster +.. automodule:: sportsipy.nba.roster :members: :undoc-members: :show-inheritance: @@ -151,7 +151,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.nba.schedule import Schedule + from sportsipy.nba.schedule import Schedule houston_schedule = Schedule('HOU') for game in houston_schedule: @@ -160,7 +160,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.nba.schedule +.. automodule:: sportsipy.nba.schedule :members: :undoc-members: :show-inheritance: @@ -174,7 +174,7 @@ number of shots they've blocked, and much more. .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams teams = Teams() for team in teams: @@ -188,7 +188,7 @@ calling Team class. .. code-block:: python - from sportsreference.nba.teams import Team + from sportsipy.nba.teams import Team houston = Team('HOU') @@ -198,7 +198,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams teams = Teams() for team in teams: @@ -213,7 +213,7 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.nba.teams import Teams + from sportsipy.nba.teams import Teams teams = Teams() for team in teams: @@ -222,7 +222,7 @@ contains detailed stats and information for each player on the team. for player in roster.players: print(player.name) # Prints the name of each player on the team. -.. automodule:: sportsreference.nba.teams +.. automodule:: sportsipy.nba.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/ncaab.rst b/docs/ncaab.rst index 10a63a80..de8d9667 100644 --- a/docs/ncaab.rst +++ b/docs/ncaab.rst @@ -17,7 +17,7 @@ retrieving game-specific information). .. code-block:: python - from sportsreference.ncaab.boxscore import Boxscore + from sportsipy.ncaab.boxscore import Boxscore game_data = Boxscore('2018-04-02-21-villanova') print(game_data.home_points) # Prints 79 @@ -32,7 +32,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python from datetime import datetime - from sportsreference.ncaab.boxscore import Boxscores + from sportsipy.ncaab.boxscore import Boxscores games_today = Boxscores(datetime.today()) print(games_today.games) # Prints a dictionary of all matchups for today @@ -45,7 +45,7 @@ end date as the second parameter. .. code-block:: python from datetime import datetime - from sportsreference.ncaab.boxscore import Boxscores + from sportsipy.ncaab.boxscore import Boxscores # Pulls all games between and including November 11, 2017 and November 12, # 2017 @@ -54,7 +54,7 @@ end date as the second parameter. # 2017 print(games.games) -.. automodule:: sportsreference.ncaab.boxscore +.. automodule:: sportsipy.ncaab.boxscore :members: :undoc-members: :show-inheritance: @@ -70,7 +70,7 @@ information. To get a list of conference abbreviations for each team, query the .. code-block:: python - from sportsreference.ncaab.conferences import Conferences + from sportsipy.ncaab.conferences import Conferences conferences = Conferences() # Prints a dictionary of the team abbrevation as a key and conference @@ -82,7 +82,7 @@ teams in every conference. .. code-block:: python - from sportsreference.ncaab.conferences import Conferences + from sportsipy.ncaab.conferences import Conferences conferences = Conferences() # Prints a dictionary where each key is the conference abbreviation and @@ -91,7 +91,7 @@ teams in every conference. # abbreviation for each team. print(conferences.conferences) -.. automodule:: sportsreference.ncaab.conferences +.. automodule:: sportsipy.ncaab.conferences :members: :undoc-members: :show-inheritance: @@ -105,7 +105,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.ncaab.player +.. automodule:: sportsipy.ncaab.player :members: :undoc-members: :show-inheritance: @@ -123,7 +123,7 @@ week number, previous rank, and movement. .. code-block:: python - from sportsreference.ncaab.rankings import Rankings + from sportsipy.ncaab.rankings import Rankings rankings = Rankings() # Prints a dictionary of just the team abbreviation and rank for the current @@ -136,7 +136,7 @@ week number, previous rank, and movement. # have been published for the requested season. print(rankings.complete) -.. automodule:: sportsreference.ncaab.rankings +.. automodule:: sportsipy.ncaab.rankings :members: :undoc-members: :show-inheritance: @@ -152,7 +152,7 @@ for Carsen Edwards. .. code-block:: python - from sportsreference.ncaab.roster import Player + from sportsipy.ncaab.roster import Player carsen_edwards = Player('carsen-edwards-1') print(carsen_edwards.name) # Prints 'Carsen Edwards' @@ -166,7 +166,7 @@ string. All future property requests will return the season-specific stats. .. code-block:: python - from sportsreference.ncaab.roster import Player + from sportsipy.ncaab.roster import Player carsen_edwards = Player('carsen-edwards-1') # Currently pulling career stats print(carsen_edwards.points) # Prints Edwards' CAREER points total @@ -180,7 +180,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.ncaab.roster import Player + from sportsipy.ncaab.roster import Player carsen_edwards = Player('carsen-edwards-1') # Currently pulling career stats # Prints Edwards' points total only for the 2017-18 season. @@ -194,7 +194,7 @@ easily queried. .. code-block:: python - from sportsreference.ncaab.roster import Roster + from sportsipy.ncaab.roster import Roster purdue = Roster('PURDUE') for player in purdue.players: @@ -202,7 +202,7 @@ easily queried. # recent season. print(player.name) -.. automodule:: sportsreference.ncaab.roster +.. automodule:: sportsipy.ncaab.roster :members: :undoc-members: :show-inheritance: @@ -217,7 +217,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.ncaab.schedule import Schedule + from sportsipy.ncaab.schedule import Schedule purdue_schedule = Schedule('PURDUE') for game in purdue_schedule: @@ -226,7 +226,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.ncaab.schedule +.. automodule:: sportsipy.ncaab.schedule :members: :undoc-members: :show-inheritance: @@ -240,7 +240,7 @@ number of shots they've blocked, and much more. .. code-block:: python - from sportsreference.ncaab.teams import Teams + from sportsipy.ncaab.teams import Teams teams = Teams() for team in teams: @@ -254,7 +254,7 @@ class. .. code-block:: python - from sportsreference.ncaab.teams import Team + from sportsipy.ncaab.teams import Team purdue = Team('PURDUE') @@ -264,7 +264,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.ncaab.teams import Teams + from sportsipy.ncaab.teams import Teams teams = Teams() for team in teams: @@ -279,14 +279,14 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.ncaab.teams import Teams + from sportsipy.ncaab.teams import Teams for team in Teams(): roster = team.roster # Gets each team's roster for player in roster.players: print(player.name) # Prints each players name on the roster -.. automodule:: sportsreference.ncaab.teams +.. automodule:: sportsipy.ncaab.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/ncaaf.rst b/docs/ncaaf.rst index dde82fdc..3f44ef95 100644 --- a/docs/ncaaf.rst +++ b/docs/ncaaf.rst @@ -17,7 +17,7 @@ retrieving game-specific information). .. code-block:: python - from sportsreference.ncaaf.boxscore import Boxscore + from sportsipy.ncaaf.boxscore import Boxscore game_data = Boxscore('2018-01-08-georgia') print(game_data.home_points) # Prints 23 @@ -32,7 +32,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python from datetime import datetime - from sportsreference.ncaaf.boxscore import Boxscores + from sportsipy.ncaaf.boxscore import Boxscores games_today = Boxscores(datetime.today()) print(games_today.games) # Prints a dictionary of all matchups for today @@ -45,7 +45,7 @@ end date as the second parameter. .. code-block:: python from datetime import datetime - from sportsreference.ncaaf.boxscore import Boxscores + from sportsipy.ncaaf.boxscore import Boxscores # Pulls all games between and including August 30, 2017 and August 31, 2017 games = Boxscores(datetime(2017, 8, 30), datetime(2017, 8, 31)) @@ -53,7 +53,7 @@ end date as the second parameter. # 2017 print(games.games) -.. automodule:: sportsreference.ncaaf.boxscore +.. automodule:: sportsipy.ncaaf.boxscore :members: :undoc-members: :show-inheritance: @@ -69,7 +69,7 @@ information. To get a list of conference abbreviations for each team, query the .. code-block:: python - from sportsreference.ncaaf.conferences import Conferences + from sportsipy.ncaaf.conferences import Conferences conferences = Conferences() # Prints a dictionary of the team abbreviation as a key and conference @@ -81,7 +81,7 @@ teams in every conference. .. code-block:: python - from sportsreference.ncaab.conferences import Conferences + from sportsipy.ncaab.conferences import Conferences conferences = Conferences() # Prints a dictionary where each key is the conference abbreviation and @@ -90,7 +90,7 @@ teams in every conference. # abbreviation for each team. print(conferences.conferences) -.. automodule:: sportsreference.ncaaf.conferences +.. automodule:: sportsipy.ncaaf.conferences :members: :undoc-members: :show-inheritance: @@ -104,7 +104,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.ncaaf.player +.. automodule:: sportsipy.ncaaf.player :members: :undoc-members: :show-inheritance: @@ -122,7 +122,7 @@ week number, previous rank, and movement. .. code-block:: python - from sportsreference.ncaaf.rankings import Rankings + from sportsipy.ncaaf.rankings import Rankings rankings = Rankings() # Prints a dictionary of just the team abbreviation and rank for the current @@ -135,7 +135,7 @@ week number, previous rank, and movement. # have been published for the requested season. print(rankings.complete) -.. automodule:: sportsreference.ncaaf.rankings +.. automodule:: sportsipy.ncaaf.rankings :members: :undoc-members: :show-inheritance: @@ -151,7 +151,7 @@ career information for David Blough. .. code-block:: python - from sportsreference.ncaaf.roster import Player + from sportsipy.ncaaf.roster import Player blough = Player('david-blough-1') print(blough.name) # Prints 'David Blough' @@ -166,7 +166,7 @@ stats. .. code-block:: python - from sportsreference.ncaaf.roster import Player + from sportsipy.ncaaf.roster import Player blough = Player('david-blough-1') # Currently pulling career stats print(blough.passing_yards) # Prints Blough's CAREER passing yards total @@ -180,7 +180,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.ncaaf.roster import Player + from sportsipy.ncaaf.roster import Player blough = Player('david-blough-1') # Currently pulling career stats # Prints Blough's passing yards total only for the 2017 season @@ -194,7 +194,7 @@ easily queried. .. code-block:: python - from sportsreference.ncaaf.roster import Roster + from sportsipy.ncaaf.roster import Roster boilermakers = Roster('PURDUE') for player in boilermakers.players: @@ -202,7 +202,7 @@ easily queried. # in the most recent season. print(player.name) -.. automodule:: sportsreference.ncaaf.roster +.. automodule:: sportsipy.ncaaf.roster :members: :undoc-members: :show-inheritance: @@ -217,7 +217,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.ncaaf.schedule import Schedule + from sportsipy.ncaaf.schedule import Schedule purdue_schedule = Schedule('PURDUE') for game in purdue_schedule: @@ -226,7 +226,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.ncaaf.schedule +.. automodule:: sportsipy.ncaaf.schedule :members: :undoc-members: :show-inheritance: @@ -240,7 +240,7 @@ number of pass yards, and much more. .. code-block:: python - from sportsreference.ncaaf.teams import Teams + from sportsipy.ncaaf.teams import Teams teams = Teams() for team in teams: @@ -254,7 +254,7 @@ class. .. code-block:: python - from sportsreference.ncaaf.teams import Team + from sportsipy.ncaaf.teams import Team purdue = Team('PURDUE') @@ -264,7 +264,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.ncaaf.teams import Teams + from sportsipy.ncaaf.teams import Teams teams = Teams() for team in teams: @@ -279,14 +279,14 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.ncaaf.teams import Teams + from sportsipy.ncaaf.teams import Teams for team in Teams(): roster = team.roster # Gets each team's roster for player in roster.players: print(player.name) # Prints each players name on the roster -.. automodule:: sportsreference.ncaaf.teams +.. automodule:: sportsipy.ncaaf.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/nfl.rst b/docs/nfl.rst index 02ee2a19..3e62e051 100644 --- a/docs/nfl.rst +++ b/docs/nfl.rst @@ -17,7 +17,7 @@ information on retrieving game-specific information). .. code-block:: python - from sportsreference.nfl.boxscore import Boxscore + from sportsipy.nfl.boxscore import Boxscore game_data = Boxscore('201802040nwe') print(game_data.home_points) # Prints 33 @@ -31,7 +31,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python - from sportsreference.nfl.boxscore import Boxscores + from sportsipy.nfl.boxscore import Boxscores games_today = Boxscores(1, 2017) # Prints a dictionary of all matchups for week 1 of 2017 @@ -44,14 +44,14 @@ end date as the second parameter. .. code-block:: python - from sportsreference.nfl.boxscore import Boxscores + from sportsipy.nfl.boxscore import Boxscores # Pulls all games from weeks 7 and 8 in 2017 games = Boxscores(7, 2017, 8) # Prints a dictionary of all games from weeks 7 and 8 in 2017 print(games.games) -.. automodule:: sportsreference.nfl.boxscore +.. automodule:: sportsipy.nfl.boxscore :members: :undoc-members: :show-inheritance: @@ -65,7 +65,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.nfl.player +.. automodule:: sportsipy.nfl.player :members: :undoc-members: :show-inheritance: @@ -81,7 +81,7 @@ career information for Drew Brees. .. code-block:: python - from sportsreference.nfl.roster import Player + from sportsipy.nfl.roster import Player brees = Player('BreeDr00') print(brees.name) # Prints 'Drew Brees' @@ -96,7 +96,7 @@ stats. .. code-block:: python - from sportsreference.nfl.roster import Player + from sportsipy.nfl.roster import Player brees = Player('BreeDr00') # Currently pulling career stats print(brees.passing_yards) # Prints Brees' CAREER passing yards total @@ -110,7 +110,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.nfl.roster import Player + from sportsipy.nfl.roster import Player brees = Player('BreeDr00') # Currently pulling career stats # Prints Brees' passing yards total only for the 2017 season @@ -124,7 +124,7 @@ easily queried. .. code-block:: python - from sportsreference.nfl.roster import Roster + from sportsipy.nfl.roster import Roster saints = Roster('NOR') for player in saints.players: @@ -132,7 +132,7 @@ easily queried. # in the most recent season. print(player.name) -.. automodule:: sportsreference.nfl.roster +.. automodule:: sportsipy.nfl.roster :members: :undoc-members: :show-inheritance: @@ -147,7 +147,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.nfl.schedule import Schedule + from sportsipy.nfl.schedule import Schedule houston_schedule = Schedule('HTX') for game in houston_schedule: @@ -156,7 +156,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.nfl.schedule +.. automodule:: sportsipy.nfl.schedule :members: :undoc-members: :show-inheritance: @@ -170,7 +170,7 @@ margin of victory, and much more. .. code-block:: python - from sportsreference.nfl.teams import Teams + from sportsipy.nfl.teams import Teams teams = Teams() for team in teams: @@ -185,7 +185,7 @@ calling Team class. .. code-block:: python - from sportsreference.nfl.teams import Team + from sportsipy.nfl.teams import Team kansas = Team('KAN') @@ -195,7 +195,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.nfl.teams import Teams + from sportsipy.nfl.teams import Teams teams = Teams() for team in teams: @@ -210,14 +210,14 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.nfl.teams import Teams + from sportsipy.nfl.teams import Teams for team in Teams(): roster = team.roster # Gets each team's roster for player in roster.players: print(player.name) # Prints each players name on the roster -.. automodule:: sportsreference.nfl.teams +.. automodule:: sportsipy.nfl.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/nhl.rst b/docs/nhl.rst index b547ae96..902952fc 100644 --- a/docs/nhl.rst +++ b/docs/nhl.rst @@ -17,7 +17,7 @@ retrieving game-specific information). .. code-block:: python - from sportsreference.nhl.boxscore import Boxscore + from sportsipy.nhl.boxscore import Boxscore game_data = Boxscore('201806070VEG') print(game_data.home_goals) # Prints 3 @@ -32,7 +32,7 @@ abbreviations for each matchup as well as the boxscore link if applicable. .. code-block:: python from datetime import datetime - from sportsreference.nhl.boxscore import Boxscores + from sportsipy.nhl.boxscore import Boxscores games_today = Boxscores(datetime.today()) print(games_today.games) # Prints a dictionary of all matchups for today @@ -45,7 +45,7 @@ end date as the second parameter. .. code-block:: python from datetime import datetime - from sportsreference.nhl.boxscore import Boxscores + from sportsipy.nhl.boxscore import Boxscores # Pulls all games between and including February 4, 2017 and February 5, # 2017 @@ -54,7 +54,7 @@ end date as the second parameter. # 2017 print(games.games) -.. automodule:: sportsreference.nhl.boxscore +.. automodule:: sportsipy.nhl.boxscore :members: :undoc-members: :show-inheritance: @@ -68,7 +68,7 @@ modules, respectively. All of the properties that appear in the ``AbstractPlayer`` class can be read from either of the two child classes mentioned above. -.. automodule:: sportsreference.nhl.player +.. automodule:: sportsipy.nhl.player :members: :undoc-members: :show-inheritance: @@ -84,7 +84,7 @@ for Henrik Zetterberg: .. code-block:: python - from sportsreference.nhl.roster import Player + from sportsipy.nhl.roster import Player zetterberg = Player('zettehe01') print(zetterberg.name) # Prints 'Henrik Zetterberg' @@ -99,7 +99,7 @@ stats. .. code-block:: python - from sportsreference.nhl.roster import Player + from sportsipy.nhl.roster import Player zetterberg = Player('zettehe01') # Currently pulling career stats print(zetterberg.points) # Prints Zetterberg's CAREER points total @@ -113,7 +113,7 @@ by calling the class without arguments or with the 'Career' string passed. .. code-block:: python - from sportsreference.nhl.roster import Player + from sportsipy.nhl.roster import Player zetterberg = Player('zettehe01') # Currently pulling career stats # Prints Zetterberg's points total only for the 2017-18 season. @@ -127,7 +127,7 @@ easily queried. .. code-block:: python - from sportsreference.nhl.roster import Roster + from sportsipy.nhl.roster import Roster detroit = Roster('DET') for player in detroit.players: @@ -135,7 +135,7 @@ easily queried. # recent season. print(player.name) -.. automodule:: sportsreference.nhl.roster +.. automodule:: sportsipy.nhl.roster :members: :undoc-members: :show-inheritance: @@ -150,7 +150,7 @@ information on the game metrics. .. code-block:: python - from sportsreference.nhl.schedule import Schedule + from sportsipy.nhl.schedule import Schedule detroit_schedule = Schedule('DET') for game in detroit_schedule: @@ -159,7 +159,7 @@ information on the game metrics. # Creates an instance of the Boxscore class for the game. boxscore = game.boxscore -.. automodule:: sportsreference.nhl.schedule +.. automodule:: sportsipy.nhl.schedule :members: :undoc-members: :show-inheritance: @@ -173,7 +173,7 @@ number of shots on goal, and much more. .. code-block:: python - from sportsreference.nhl.teams import Teams + from sportsipy.nhl.teams import Teams teams = Teams() for team in teams: @@ -187,7 +187,7 @@ calling Team class. .. code-block:: python - from sportsreference.nhl.teams import Team + from sportsipy.nhl.teams import Team detroit = Team('DET') @@ -197,7 +197,7 @@ queried to easily grab all stats for all games. .. code-block:: python - from sportsreference.nhl.teams import Teams + from sportsipy.nhl.teams import Teams teams = Teams() for team in teams: @@ -212,7 +212,7 @@ contains detailed stats and information for each player on the team. .. code-block:: python - from sportsreference.nhl.teams import Teams + from sportsipy.nhl.teams import Teams teams = Teams() for team in teams: @@ -221,7 +221,7 @@ contains detailed stats and information for each player on the team. for player in roster.players: print(player.name) # Prints the name of each player on the team. -.. automodule:: sportsreference.nhl.teams +.. automodule:: sportsipy.nhl.teams :members: :undoc-members: :show-inheritance: diff --git a/docs/testing.rst b/docs/testing.rst index d1fbb0bb..e0bd49b1 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -1,7 +1,7 @@ Testing ======= -Sportsreference contains a testing suite which aims to test all major portions +Sportsipy contains a testing suite which aims to test all major portions of code for proper functionality. To run the test suite against your environment, ensure all of the requirements are installed by running:: @@ -11,7 +11,7 @@ Next, start the tests by running py.test while optionally including coverage flags which identify the amount of production code covered by the testing framework:: - py.test --cov=sportsreference --cov-report term-missing tests/ + py.test --cov=sportsipy --cov-report term-missing tests/ If the tests were successful, it will return a green line will show a message at the end of the output similar to the following:: diff --git a/setup.py b/setup.py index 9eb1aeb7..1357c02a 100644 --- a/setup.py +++ b/setup.py @@ -7,17 +7,17 @@ version = f.read() setup( - name='sportsreference', + name='sportsipy', version=version, author='Robert Clark', author_email='robdclark@outlook.com', description='A free sports API written for python', long_description=long_description, license='MIT', - url='https://github.com/roclark/sportsreference', + url='https://github.com/roclark/sportsipy', packages=find_packages(), python_requires='>=3.6', - keywords='stats sports api sportsreference machine learning', + keywords='stats sports api sportsipy machine learning', install_requires=[ "pandas >= 0.24.1", "pyquery >= 1.4.0", diff --git a/sportsreference/__init__.py b/sportsipy/__init__.py similarity index 100% rename from sportsreference/__init__.py rename to sportsipy/__init__.py diff --git a/sportsreference/constants.py b/sportsipy/constants.py similarity index 100% rename from sportsreference/constants.py rename to sportsipy/constants.py diff --git a/sportsreference/decorators.py b/sportsipy/decorators.py similarity index 100% rename from sportsreference/decorators.py rename to sportsipy/decorators.py diff --git a/sportsreference/fb/__init__.py b/sportsipy/fb/__init__.py similarity index 100% rename from sportsreference/fb/__init__.py rename to sportsipy/fb/__init__.py diff --git a/sportsreference/fb/constants.py b/sportsipy/fb/constants.py similarity index 100% rename from sportsreference/fb/constants.py rename to sportsipy/fb/constants.py diff --git a/sportsreference/fb/fb_utils.py b/sportsipy/fb/fb_utils.py similarity index 98% rename from sportsreference/fb/fb_utils.py rename to sportsipy/fb/fb_utils.py index 3524ba85..e9591099 100644 --- a/sportsreference/fb/fb_utils.py +++ b/sportsipy/fb/fb_utils.py @@ -59,7 +59,7 @@ def lookup_squad_id(name, quiet=False): to find the best alternatives for later use. The keys are the suggested names and values are the squad IDs. This allows direct usage of a squad ID in subsequent calls to various classes in the Football module in - sportsreference instead of attempting to lookup a name. As there can be + sportsipy instead of attempting to lookup a name. As there can be multiple return types, it is recommended to check the type of the returned value before further calculations. If the return is of type ``string``, it is the 8-digit squad ID. If it is of type ``dictionary``, it is a key-value diff --git a/sportsreference/fb/league_ids.py b/sportsipy/fb/league_ids.py similarity index 100% rename from sportsreference/fb/league_ids.py rename to sportsipy/fb/league_ids.py diff --git a/sportsreference/fb/roster.py b/sportsipy/fb/roster.py similarity index 99% rename from sportsreference/fb/roster.py rename to sportsipy/fb/roster.py index 5f2824cc..e064b307 100644 --- a/sportsreference/fb/roster.py +++ b/sportsipy/fb/roster.py @@ -5,9 +5,9 @@ from .fb_utils import _lookup_team from .league_ids import LEAGUE_IDS from pyquery import PyQuery as pq -from sportsreference.utils import (_get_stats_table, - _parse_field, - _remove_html_comment_tags) +from sportsipy.utils import (_get_stats_table, + _parse_field, + _remove_html_comment_tags) from urllib.error import HTTPError diff --git a/sportsreference/fb/schedule.py b/sportsipy/fb/schedule.py similarity index 98% rename from sportsreference/fb/schedule.py rename to sportsipy/fb/schedule.py index 4a857583..0012e1a9 100644 --- a/sportsreference/fb/schedule.py +++ b/sportsipy/fb/schedule.py @@ -5,13 +5,13 @@ from ..decorators import float_property_decorator, int_property_decorator from .fb_utils import _lookup_team from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (AWAY, - DRAW, - HOME, - LOSS, - NEUTRAL, - WIN) +from sportsipy import utils +from sportsipy.constants import (AWAY, + DRAW, + HOME, + LOSS, + NEUTRAL, + WIN) from urllib.error import HTTPError diff --git a/sportsreference/fb/squad_ids.py b/sportsipy/fb/squad_ids.py similarity index 100% rename from sportsreference/fb/squad_ids.py rename to sportsipy/fb/squad_ids.py diff --git a/sportsreference/fb/team.py b/sportsipy/fb/team.py similarity index 100% rename from sportsreference/fb/team.py rename to sportsipy/fb/team.py diff --git a/sportsreference/mlb/__init__.py b/sportsipy/mlb/__init__.py similarity index 100% rename from sportsreference/mlb/__init__.py rename to sportsipy/mlb/__init__.py diff --git a/sportsreference/mlb/boxscore.py b/sportsipy/mlb/boxscore.py similarity index 100% rename from sportsreference/mlb/boxscore.py rename to sportsipy/mlb/boxscore.py diff --git a/sportsreference/mlb/constants.py b/sportsipy/mlb/constants.py similarity index 100% rename from sportsreference/mlb/constants.py rename to sportsipy/mlb/constants.py diff --git a/sportsreference/mlb/mlb_utils.py b/sportsipy/mlb/mlb_utils.py similarity index 99% rename from sportsreference/mlb/mlb_utils.py rename to sportsipy/mlb/mlb_utils.py index 6f7ae97f..4d57e37f 100644 --- a/sportsreference/mlb/mlb_utils.py +++ b/sportsipy/mlb/mlb_utils.py @@ -1,6 +1,6 @@ from .constants import PARSING_SCHEME, STANDINGS_URL, TEAM_STATS_URL from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils def _add_stats_data(teams_list, team_data_dict): diff --git a/sportsreference/mlb/player.py b/sportsipy/mlb/player.py similarity index 100% rename from sportsreference/mlb/player.py rename to sportsipy/mlb/player.py diff --git a/sportsreference/mlb/roster.py b/sportsipy/mlb/roster.py similarity index 100% rename from sportsreference/mlb/roster.py rename to sportsipy/mlb/roster.py diff --git a/sportsreference/mlb/schedule.py b/sportsipy/mlb/schedule.py similarity index 97% rename from sportsreference/mlb/schedule.py rename to sportsipy/mlb/schedule.py index 4c216206..899b9a98 100644 --- a/sportsreference/mlb/schedule.py +++ b/sportsipy/mlb/schedule.py @@ -7,15 +7,15 @@ SCHEDULE_URL) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - HOME, - AWAY, - NEUTRAL, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.mlb.boxscore import Boxscore +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + HOME, + AWAY, + NEUTRAL, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.mlb.boxscore import Boxscore class Game: diff --git a/sportsreference/mlb/teams.py b/sportsipy/mlb/teams.py similarity index 100% rename from sportsreference/mlb/teams.py rename to sportsipy/mlb/teams.py diff --git a/sportsreference/nba/__init__.py b/sportsipy/nba/__init__.py similarity index 100% rename from sportsreference/nba/__init__.py rename to sportsipy/nba/__init__.py diff --git a/sportsreference/nba/boxscore.py b/sportsipy/nba/boxscore.py similarity index 100% rename from sportsreference/nba/boxscore.py rename to sportsipy/nba/boxscore.py diff --git a/sportsreference/nba/constants.py b/sportsipy/nba/constants.py similarity index 100% rename from sportsreference/nba/constants.py rename to sportsipy/nba/constants.py diff --git a/sportsreference/nba/nba_utils.py b/sportsipy/nba/nba_utils.py similarity index 99% rename from sportsreference/nba/nba_utils.py rename to sportsipy/nba/nba_utils.py index 7b7e5723..919edc4b 100644 --- a/sportsreference/nba/nba_utils.py +++ b/sportsipy/nba/nba_utils.py @@ -1,6 +1,6 @@ from .constants import PARSING_SCHEME, SEASON_PAGE_URL from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils from urllib.error import HTTPError diff --git a/sportsreference/nba/player.py b/sportsipy/nba/player.py similarity index 100% rename from sportsreference/nba/player.py rename to sportsipy/nba/player.py diff --git a/sportsreference/nba/roster.py b/sportsipy/nba/roster.py similarity index 100% rename from sportsreference/nba/roster.py rename to sportsipy/nba/roster.py diff --git a/sportsreference/nba/schedule.py b/sportsipy/nba/schedule.py similarity index 97% rename from sportsreference/nba/schedule.py rename to sportsipy/nba/schedule.py index 4b0fb5e9..af408cc2 100644 --- a/sportsreference/nba/schedule.py +++ b/sportsipy/nba/schedule.py @@ -5,15 +5,15 @@ SCHEDULE_URL) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - HOME, - AWAY, - NEUTRAL, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.nba.boxscore import Boxscore +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + HOME, + AWAY, + NEUTRAL, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.nba.boxscore import Boxscore from urllib.error import HTTPError diff --git a/sportsreference/nba/teams.py b/sportsipy/nba/teams.py similarity index 100% rename from sportsreference/nba/teams.py rename to sportsipy/nba/teams.py diff --git a/sportsreference/ncaab/__init__.py b/sportsipy/ncaab/__init__.py similarity index 100% rename from sportsreference/ncaab/__init__.py rename to sportsipy/ncaab/__init__.py diff --git a/sportsreference/ncaab/boxscore.py b/sportsipy/ncaab/boxscore.py similarity index 100% rename from sportsreference/ncaab/boxscore.py rename to sportsipy/ncaab/boxscore.py diff --git a/sportsreference/ncaab/conferences.py b/sportsipy/ncaab/conferences.py similarity index 100% rename from sportsreference/ncaab/conferences.py rename to sportsipy/ncaab/conferences.py diff --git a/sportsreference/ncaab/constants.py b/sportsipy/ncaab/constants.py similarity index 100% rename from sportsreference/ncaab/constants.py rename to sportsipy/ncaab/constants.py diff --git a/sportsreference/ncaab/ncaab_utils.py b/sportsipy/ncaab/ncaab_utils.py similarity index 99% rename from sportsreference/ncaab/ncaab_utils.py rename to sportsipy/ncaab/ncaab_utils.py index c683db15..0076ff45 100644 --- a/sportsreference/ncaab/ncaab_utils.py +++ b/sportsipy/ncaab/ncaab_utils.py @@ -4,7 +4,7 @@ BASIC_STATS_URL, PARSING_SCHEME) from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils def _add_stats_data(teams_list, team_data_dict): diff --git a/sportsreference/ncaab/player.py b/sportsipy/ncaab/player.py similarity index 100% rename from sportsreference/ncaab/player.py rename to sportsipy/ncaab/player.py diff --git a/sportsreference/ncaab/rankings.py b/sportsipy/ncaab/rankings.py similarity index 100% rename from sportsreference/ncaab/rankings.py rename to sportsipy/ncaab/rankings.py diff --git a/sportsreference/ncaab/roster.py b/sportsipy/ncaab/roster.py similarity index 100% rename from sportsreference/ncaab/roster.py rename to sportsipy/ncaab/roster.py diff --git a/sportsreference/ncaab/schedule.py b/sportsipy/ncaab/schedule.py similarity index 97% rename from sportsreference/ncaab/schedule.py rename to sportsipy/ncaab/schedule.py index 9890736d..051f0183 100644 --- a/sportsreference/ncaab/schedule.py +++ b/sportsipy/ncaab/schedule.py @@ -9,16 +9,16 @@ CIT_TOURNAMENT) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - HOME, - AWAY, - NEUTRAL, - NON_DI, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.ncaab.boxscore import Boxscore +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + HOME, + AWAY, + NEUTRAL, + NON_DI, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.ncaab.boxscore import Boxscore class Game: diff --git a/sportsreference/ncaab/teams.py b/sportsipy/ncaab/teams.py similarity index 100% rename from sportsreference/ncaab/teams.py rename to sportsipy/ncaab/teams.py diff --git a/sportsreference/ncaaf/__init__.py b/sportsipy/ncaaf/__init__.py similarity index 100% rename from sportsreference/ncaaf/__init__.py rename to sportsipy/ncaaf/__init__.py diff --git a/sportsreference/ncaaf/boxscore.py b/sportsipy/ncaaf/boxscore.py similarity index 100% rename from sportsreference/ncaaf/boxscore.py rename to sportsipy/ncaaf/boxscore.py diff --git a/sportsreference/ncaaf/conferences.py b/sportsipy/ncaaf/conferences.py similarity index 100% rename from sportsreference/ncaaf/conferences.py rename to sportsipy/ncaaf/conferences.py diff --git a/sportsreference/ncaaf/constants.py b/sportsipy/ncaaf/constants.py similarity index 100% rename from sportsreference/ncaaf/constants.py rename to sportsipy/ncaaf/constants.py diff --git a/sportsreference/ncaaf/ncaaf_utils.py b/sportsipy/ncaaf/ncaaf_utils.py similarity index 99% rename from sportsreference/ncaaf/ncaaf_utils.py rename to sportsipy/ncaaf/ncaaf_utils.py index c44ed59f..cde67f55 100644 --- a/sportsreference/ncaaf/ncaaf_utils.py +++ b/sportsipy/ncaaf/ncaaf_utils.py @@ -1,5 +1,5 @@ from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils from .constants import (DEFENSIVE_STATS_URL, OFFENSIVE_STATS_URL, PARSING_SCHEME, diff --git a/sportsreference/ncaaf/player.py b/sportsipy/ncaaf/player.py similarity index 100% rename from sportsreference/ncaaf/player.py rename to sportsipy/ncaaf/player.py diff --git a/sportsreference/ncaaf/rankings.py b/sportsipy/ncaaf/rankings.py similarity index 100% rename from sportsreference/ncaaf/rankings.py rename to sportsipy/ncaaf/rankings.py diff --git a/sportsreference/ncaaf/roster.py b/sportsipy/ncaaf/roster.py similarity index 100% rename from sportsreference/ncaaf/roster.py rename to sportsipy/ncaaf/roster.py diff --git a/sportsreference/ncaaf/schedule.py b/sportsipy/ncaaf/schedule.py similarity index 97% rename from sportsreference/ncaaf/schedule.py rename to sportsipy/ncaaf/schedule.py index 7e386de2..f0ad61ec 100644 --- a/sportsreference/ncaaf/schedule.py +++ b/sportsipy/ncaaf/schedule.py @@ -5,16 +5,16 @@ SCHEDULE_URL) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - HOME, - AWAY, - NEUTRAL, - NON_DI, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.ncaaf.boxscore import Boxscore +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + HOME, + AWAY, + NEUTRAL, + NON_DI, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.ncaaf.boxscore import Boxscore class Game: diff --git a/sportsreference/ncaaf/teams.py b/sportsipy/ncaaf/teams.py similarity index 100% rename from sportsreference/ncaaf/teams.py rename to sportsipy/ncaaf/teams.py diff --git a/sportsreference/nfl/__init__.py b/sportsipy/nfl/__init__.py similarity index 100% rename from sportsreference/nfl/__init__.py rename to sportsipy/nfl/__init__.py diff --git a/sportsreference/nfl/boxscore.py b/sportsipy/nfl/boxscore.py similarity index 100% rename from sportsreference/nfl/boxscore.py rename to sportsipy/nfl/boxscore.py diff --git a/sportsreference/nfl/constants.py b/sportsipy/nfl/constants.py similarity index 100% rename from sportsreference/nfl/constants.py rename to sportsipy/nfl/constants.py diff --git a/sportsreference/nfl/nfl_utils.py b/sportsipy/nfl/nfl_utils.py similarity index 98% rename from sportsreference/nfl/nfl_utils.py rename to sportsipy/nfl/nfl_utils.py index 402cf80d..3c9f4fa6 100644 --- a/sportsreference/nfl/nfl_utils.py +++ b/sportsipy/nfl/nfl_utils.py @@ -1,5 +1,5 @@ from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils from .constants import PARSING_SCHEME, SEASON_PAGE_URL diff --git a/sportsreference/nfl/player.py b/sportsipy/nfl/player.py similarity index 100% rename from sportsreference/nfl/player.py rename to sportsipy/nfl/player.py diff --git a/sportsreference/nfl/roster.py b/sportsipy/nfl/roster.py similarity index 100% rename from sportsreference/nfl/roster.py rename to sportsipy/nfl/roster.py diff --git a/sportsreference/nfl/schedule.py b/sportsipy/nfl/schedule.py similarity index 96% rename from sportsreference/nfl/schedule.py rename to sportsipy/nfl/schedule.py index d6217f9a..5004219d 100644 --- a/sportsreference/nfl/schedule.py +++ b/sportsipy/nfl/schedule.py @@ -5,21 +5,21 @@ SCHEDULE_URL) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - TIE, - HOME, - AWAY, - NEUTRAL, - POST_SEASON, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.nfl.boxscore import Boxscore -from sportsreference.nfl.constants import (CONF_CHAMPIONSHIP, - DIVISION, - SUPER_BOWL, - WILD_CARD) +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + TIE, + HOME, + AWAY, + NEUTRAL, + POST_SEASON, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.nfl.boxscore import Boxscore +from sportsipy.nfl.constants import (CONF_CHAMPIONSHIP, + DIVISION, + SUPER_BOWL, + WILD_CARD) class Game: diff --git a/sportsreference/nfl/teams.py b/sportsipy/nfl/teams.py similarity index 100% rename from sportsreference/nfl/teams.py rename to sportsipy/nfl/teams.py diff --git a/sportsreference/nhl/__init__.py b/sportsipy/nhl/__init__.py similarity index 100% rename from sportsreference/nhl/__init__.py rename to sportsipy/nhl/__init__.py diff --git a/sportsreference/nhl/boxscore.py b/sportsipy/nhl/boxscore.py similarity index 100% rename from sportsreference/nhl/boxscore.py rename to sportsipy/nhl/boxscore.py diff --git a/sportsreference/nhl/constants.py b/sportsipy/nhl/constants.py similarity index 100% rename from sportsreference/nhl/constants.py rename to sportsipy/nhl/constants.py diff --git a/sportsreference/nhl/nhl_utils.py b/sportsipy/nhl/nhl_utils.py similarity index 98% rename from sportsreference/nhl/nhl_utils.py rename to sportsipy/nhl/nhl_utils.py index e845630a..094ab048 100644 --- a/sportsreference/nhl/nhl_utils.py +++ b/sportsipy/nhl/nhl_utils.py @@ -1,5 +1,5 @@ from pyquery import PyQuery as pq -from sportsreference import utils +from sportsipy import utils from .constants import SEASON_PAGE_URL diff --git a/sportsreference/nhl/player.py b/sportsipy/nhl/player.py similarity index 100% rename from sportsreference/nhl/player.py rename to sportsipy/nhl/player.py diff --git a/sportsreference/nhl/roster.py b/sportsipy/nhl/roster.py similarity index 100% rename from sportsreference/nhl/roster.py rename to sportsipy/nhl/roster.py diff --git a/sportsreference/nhl/schedule.py b/sportsipy/nhl/schedule.py similarity index 97% rename from sportsreference/nhl/schedule.py rename to sportsipy/nhl/schedule.py index e8d6af48..682c9b62 100644 --- a/sportsreference/nhl/schedule.py +++ b/sportsipy/nhl/schedule.py @@ -5,16 +5,16 @@ SCHEDULE_URL) from datetime import datetime from pyquery import PyQuery as pq -from sportsreference import utils -from sportsreference.constants import (WIN, - LOSS, - HOME, - AWAY, - NEUTRAL, - REGULAR_SEASON, - CONFERENCE_TOURNAMENT) -from sportsreference.nhl.boxscore import Boxscore -from sportsreference.nhl.constants import OVERTIME_LOSS, SHOOTOUT +from sportsipy import utils +from sportsipy.constants import (WIN, + LOSS, + HOME, + AWAY, + NEUTRAL, + REGULAR_SEASON, + CONFERENCE_TOURNAMENT) +from sportsipy.nhl.boxscore import Boxscore +from sportsipy.nhl.constants import OVERTIME_LOSS, SHOOTOUT class Game: diff --git a/sportsreference/nhl/teams.py b/sportsipy/nhl/teams.py similarity index 100% rename from sportsreference/nhl/teams.py rename to sportsipy/nhl/teams.py diff --git a/sportsreference/utils.py b/sportsipy/utils.py similarity index 99% rename from sportsreference/utils.py rename to sportsipy/utils.py index fa4eddda..6bf8926c 100644 --- a/sportsreference/utils.py +++ b/sportsipy/utils.py @@ -327,7 +327,7 @@ def _no_data_found(): Occasionally, such as right before the beginning of a season, a page will return a valid response but will have no data outside of the default - HTML and CSS template. With no data present on the page, sportsreference + HTML and CSS template. With no data present on the page, sportsipy can't parse any information and should indicate the lack of data and return safely. """ diff --git a/tests/exhaustive/fb_tests.py b/tests/exhaustive/fb_tests.py index 5f5e48a0..d5cf10c0 100644 --- a/tests/exhaustive/fb_tests.py +++ b/tests/exhaustive/fb_tests.py @@ -1,7 +1,7 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.fb.team import Team -from sportsreference.fb.squad_ids import SQUAD_IDS +from sportsipy.fb.team import Team +from sportsipy.fb.squad_ids import SQUAD_IDS for team in list(set(SQUAD_IDS.values())): squad = Team(team) diff --git a/tests/exhaustive/mlb_tests.py b/tests/exhaustive/mlb_tests.py index d6661a89..857ffeac 100644 --- a/tests/exhaustive/mlb_tests.py +++ b/tests/exhaustive/mlb_tests.py @@ -1,6 +1,6 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.mlb.teams import Teams +from sportsipy.mlb.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/exhaustive/nba_tests.py b/tests/exhaustive/nba_tests.py index 791ddf0e..c9f75bfa 100644 --- a/tests/exhaustive/nba_tests.py +++ b/tests/exhaustive/nba_tests.py @@ -1,6 +1,6 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.nba.teams import Teams +from sportsipy.nba.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/exhaustive/ncaab_tests.py b/tests/exhaustive/ncaab_tests.py index 6fa86e89..19b4b4a1 100644 --- a/tests/exhaustive/ncaab_tests.py +++ b/tests/exhaustive/ncaab_tests.py @@ -1,8 +1,8 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.ncaab.conferences import Conferences -from sportsreference.ncaab.rankings import Rankings -from sportsreference.ncaab.teams import Teams +from sportsipy.ncaab.conferences import Conferences +from sportsipy.ncaab.rankings import Rankings +from sportsipy.ncaab.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/exhaustive/ncaaf_tests.py b/tests/exhaustive/ncaaf_tests.py index ebac3aae..80eaf91d 100644 --- a/tests/exhaustive/ncaaf_tests.py +++ b/tests/exhaustive/ncaaf_tests.py @@ -1,8 +1,8 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.ncaaf.conferences import Conferences -from sportsreference.ncaaf.rankings import Rankings -from sportsreference.ncaaf.teams import Teams +from sportsipy.ncaaf.conferences import Conferences +from sportsipy.ncaaf.rankings import Rankings +from sportsipy.ncaaf.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/exhaustive/nfl_tests.py b/tests/exhaustive/nfl_tests.py index 86975849..4aadcf2b 100644 --- a/tests/exhaustive/nfl_tests.py +++ b/tests/exhaustive/nfl_tests.py @@ -1,6 +1,6 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.nfl.teams import Teams +from sportsipy.nfl.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/exhaustive/nhl_tests.py b/tests/exhaustive/nhl_tests.py index 898b54f3..0800b755 100644 --- a/tests/exhaustive/nhl_tests.py +++ b/tests/exhaustive/nhl_tests.py @@ -1,6 +1,6 @@ import sys, os sys.path.append(os.path.dirname(os.path.dirname(sys.path[0]))) -from sportsreference.nhl.teams import Teams +from sportsipy.nhl.teams import Teams for team in Teams(): print(team.name) diff --git a/tests/integration/boxscore/mlb/BOS201806070.shtml b/tests/integration/boxscore/mlb/BOS201806070.shtml index fd97b3c4..370a07b9 100644 --- a/tests/integration/boxscore/mlb/BOS201806070.shtml +++ b/tests/integration/boxscore/mlb/BOS201806070.shtml @@ -1948,7 +1948,7 @@ we believe it to be as accurate as is currently possible.

- + diff --git a/tests/integration/boxscore/mlb/boxscore-7-17-2017.html b/tests/integration/boxscore/mlb/boxscore-7-17-2017.html index cd229d18..9c1310bb 100644 --- a/tests/integration/boxscore/mlb/boxscore-7-17-2017.html +++ b/tests/integration/boxscore/mlb/boxscore-7-17-2017.html @@ -2098,7 +2098,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/mlb/boxscore-7-18-2017.html b/tests/integration/boxscore/mlb/boxscore-7-18-2017.html index c7b3c3f3..2c14bebd 100644 --- a/tests/integration/boxscore/mlb/boxscore-7-18-2017.html +++ b/tests/integration/boxscore/mlb/boxscore-7-18-2017.html @@ -2142,7 +2142,7 @@

MLB Scores and Standings Tuesday, July 18, 2017

- + diff --git a/tests/integration/boxscore/nba/201710310LAL.html b/tests/integration/boxscore/nba/201710310LAL.html index 431345d4..32cd8de0 100644 --- a/tests/integration/boxscore/nba/201710310LAL.html +++ b/tests/integration/boxscore/nba/201710310LAL.html @@ -1372,7 +1372,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nba/boxscores-2-4-2017.html b/tests/integration/boxscore/nba/boxscores-2-4-2017.html index b57337bf..9d3daf27 100644 --- a/tests/integration/boxscore/nba/boxscores-2-4-2017.html +++ b/tests/integration/boxscore/nba/boxscores-2-4-2017.html @@ -1616,7 +1616,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nba/boxscores-2-5-2017.html b/tests/integration/boxscore/nba/boxscores-2-5-2017.html index eed15307..00f70b9e 100644 --- a/tests/integration/boxscore/nba/boxscores-2-5-2017.html +++ b/tests/integration/boxscore/nba/boxscores-2-5-2017.html @@ -1238,7 +1238,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaab/2017-11-24-21-purdue.html b/tests/integration/boxscore/ncaab/2017-11-24-21-purdue.html index 056d3066..1e1d8960 100644 --- a/tests/integration/boxscore/ncaab/2017-11-24-21-purdue.html +++ b/tests/integration/boxscore/ncaab/2017-11-24-21-purdue.html @@ -1482,7 +1482,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaab/boxscores-11-11-2017.html b/tests/integration/boxscore/ncaab/boxscores-11-11-2017.html index e6fdb3c6..f0b56f95 100644 --- a/tests/integration/boxscore/ncaab/boxscores-11-11-2017.html +++ b/tests/integration/boxscore/ncaab/boxscores-11-11-2017.html @@ -1427,7 +1427,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaab/boxscores-11-12-2017.html b/tests/integration/boxscore/ncaab/boxscores-11-12-2017.html index 676e9eac..7b9de4bc 100644 --- a/tests/integration/boxscore/ncaab/boxscores-11-12-2017.html +++ b/tests/integration/boxscore/ncaab/boxscores-11-12-2017.html @@ -1891,7 +1891,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaaf/2018-01-08-georgia.html b/tests/integration/boxscore/ncaaf/2018-01-08-georgia.html index 03bf771b..a3a89b2e 100644 --- a/tests/integration/boxscore/ncaaf/2018-01-08-georgia.html +++ b/tests/integration/boxscore/ncaaf/2018-01-08-georgia.html @@ -1100,7 +1100,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaaf/boxscores-8-30-2017.html b/tests/integration/boxscore/ncaaf/boxscores-8-30-2017.html index 389a38ff..2539a27b 100644 --- a/tests/integration/boxscore/ncaaf/boxscores-8-30-2017.html +++ b/tests/integration/boxscore/ncaaf/boxscores-8-30-2017.html @@ -2768,7 +2768,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/ncaaf/boxscores-8-31-2017.html b/tests/integration/boxscore/ncaaf/boxscores-8-31-2017.html index abdf3ba2..d5fc74e7 100644 --- a/tests/integration/boxscore/ncaaf/boxscores-8-31-2017.html +++ b/tests/integration/boxscore/ncaaf/boxscores-8-31-2017.html @@ -2747,7 +2747,7 @@

Other Games This Week

- + diff --git a/tests/integration/boxscore/nfl/201802040nwe.html b/tests/integration/boxscore/nfl/201802040nwe.html index 7fe9480d..d3b7f495 100644 --- a/tests/integration/boxscore/nfl/201802040nwe.html +++ b/tests/integration/boxscore/nfl/201802040nwe.html @@ -2566,7 +2566,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nfl/boxscores-7-2017.html b/tests/integration/boxscore/nfl/boxscores-7-2017.html index f1d14ba4..82d3d3f4 100644 --- a/tests/integration/boxscore/nfl/boxscores-7-2017.html +++ b/tests/integration/boxscore/nfl/boxscores-7-2017.html @@ -1741,7 +1741,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nfl/boxscores-8-2017.html b/tests/integration/boxscore/nfl/boxscores-8-2017.html index 4cf4d975..4205b523 100644 --- a/tests/integration/boxscore/nfl/boxscores-8-2017.html +++ b/tests/integration/boxscore/nfl/boxscores-8-2017.html @@ -1659,7 +1659,7 @@

- + diff --git a/tests/integration/boxscore/nhl/201806070VEG.html b/tests/integration/boxscore/nhl/201806070VEG.html index 776d8573..60ca7cbf 100644 --- a/tests/integration/boxscore/nhl/201806070VEG.html +++ b/tests/integration/boxscore/nhl/201806070VEG.html @@ -1832,7 +1832,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nhl/boxscores-2-4-2017.html b/tests/integration/boxscore/nhl/boxscores-2-4-2017.html index d34eb1f8..8089ad15 100644 --- a/tests/integration/boxscore/nhl/boxscores-2-4-2017.html +++ b/tests/integration/boxscore/nhl/boxscores-2-4-2017.html @@ -1164,7 +1164,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/boxscore/nhl/boxscores-2-5-2017.html b/tests/integration/boxscore/nhl/boxscores-2-5-2017.html index 4c0fe009..c067795f 100644 --- a/tests/integration/boxscore/nhl/boxscores-2-5-2017.html +++ b/tests/integration/boxscore/nhl/boxscores-2-5-2017.html @@ -806,7 +806,7 @@

- + diff --git a/tests/integration/boxscore/test_mlb_boxscore.py b/tests/integration/boxscore/test_mlb_boxscore.py index c2583096..d46f4eff 100644 --- a/tests/integration/boxscore/test_mlb_boxscore.py +++ b/tests/integration/boxscore/test_mlb_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import AWAY -from sportsreference.mlb.constants import BOXSCORE_URL, BOXSCORES_URL, NIGHT -from sportsreference.mlb.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import AWAY +from sportsipy.mlb.constants import BOXSCORE_URL, BOXSCORES_URL, NIGHT +from sportsipy.mlb.boxscore import Boxscore, Boxscores MONTH = 10 diff --git a/tests/integration/boxscore/test_nba_boxscore.py b/tests/integration/boxscore/test_nba_boxscore.py index c79cd7af..47f4f4c9 100644 --- a/tests/integration/boxscore/test_nba_boxscore.py +++ b/tests/integration/boxscore/test_nba_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import HOME -from sportsreference.nba.constants import BOXSCORE_URL, BOXSCORES_URL -from sportsreference.nba.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import HOME +from sportsipy.nba.constants import BOXSCORE_URL, BOXSCORES_URL +from sportsipy.nba.boxscore import Boxscore, Boxscores MONTH = 10 diff --git a/tests/integration/boxscore/test_ncaab_boxscore.py b/tests/integration/boxscore/test_ncaab_boxscore.py index 0c8ee058..f34923bd 100644 --- a/tests/integration/boxscore/test_ncaab_boxscore.py +++ b/tests/integration/boxscore/test_ncaab_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import HOME -from sportsreference.ncaab.constants import BOXSCORES_URL, SCHEDULE_URL -from sportsreference.ncaab.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import HOME +from sportsipy.ncaab.constants import BOXSCORES_URL, SCHEDULE_URL +from sportsipy.ncaab.boxscore import Boxscore, Boxscores MONTH = 11 diff --git a/tests/integration/boxscore/test_ncaaf_boxscore.py b/tests/integration/boxscore/test_ncaaf_boxscore.py index 1358f929..e811047d 100644 --- a/tests/integration/boxscore/test_ncaaf_boxscore.py +++ b/tests/integration/boxscore/test_ncaaf_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import AWAY -from sportsreference.ncaaf.constants import BOXSCORE_URL, BOXSCORES_URL -from sportsreference.ncaaf.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import AWAY +from sportsipy.ncaaf.constants import BOXSCORE_URL, BOXSCORES_URL +from sportsipy.ncaaf.boxscore import Boxscore, Boxscores MONTH = 10 diff --git a/tests/integration/boxscore/test_nfl_boxscore.py b/tests/integration/boxscore/test_nfl_boxscore.py index 32875481..da06fa72 100644 --- a/tests/integration/boxscore/test_nfl_boxscore.py +++ b/tests/integration/boxscore/test_nfl_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import AWAY -from sportsreference.nfl.constants import BOXSCORE_URL, BOXSCORES_URL -from sportsreference.nfl.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import AWAY +from sportsipy.nfl.constants import BOXSCORE_URL, BOXSCORES_URL +from sportsipy.nfl.boxscore import Boxscore, Boxscores MONTH = 10 diff --git a/tests/integration/boxscore/test_nhl_boxscore.py b/tests/integration/boxscore/test_nhl_boxscore.py index 5ea06bb9..61310669 100644 --- a/tests/integration/boxscore/test_nhl_boxscore.py +++ b/tests/integration/boxscore/test_nhl_boxscore.py @@ -3,10 +3,10 @@ import pandas as pd from datetime import datetime from flexmock import flexmock -from sportsreference import utils -from sportsreference.constants import AWAY -from sportsreference.nhl.constants import BOXSCORE_URL, BOXSCORES_URL -from sportsreference.nhl.boxscore import Boxscore, Boxscores +from sportsipy import utils +from sportsipy.constants import AWAY +from sportsipy.nhl.constants import BOXSCORE_URL, BOXSCORES_URL +from sportsipy.nhl.boxscore import Boxscore, Boxscores MONTH = 10 diff --git a/tests/integration/conferences/ncaab/2018-big-12.html b/tests/integration/conferences/ncaab/2018-big-12.html index 62374e13..32623145 100644 --- a/tests/integration/conferences/ncaab/2018-big-12.html +++ b/tests/integration/conferences/ncaab/2018-big-12.html @@ -3926,7 +3926,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/ncaab/2018-big-east.html b/tests/integration/conferences/ncaab/2018-big-east.html index b3475197..6cf26157 100644 --- a/tests/integration/conferences/ncaab/2018-big-east.html +++ b/tests/integration/conferences/ncaab/2018-big-east.html @@ -3962,7 +3962,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/ncaab/2018.html b/tests/integration/conferences/ncaab/2018.html index 3a58e6c2..704afdd7 100644 --- a/tests/integration/conferences/ncaab/2018.html +++ b/tests/integration/conferences/ncaab/2018.html @@ -4769,7 +4769,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/ncaaf/2018-acc.html b/tests/integration/conferences/ncaaf/2018-acc.html index a80fe1a1..d1ccbf11 100644 --- a/tests/integration/conferences/ncaaf/2018-acc.html +++ b/tests/integration/conferences/ncaaf/2018-acc.html @@ -3327,7 +3327,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/ncaaf/2018-sec.html b/tests/integration/conferences/ncaaf/2018-sec.html index c65922c4..aa11ae45 100644 --- a/tests/integration/conferences/ncaaf/2018-sec.html +++ b/tests/integration/conferences/ncaaf/2018-sec.html @@ -3351,7 +3351,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/ncaaf/2018.html b/tests/integration/conferences/ncaaf/2018.html index dd67a69a..dc062e46 100644 --- a/tests/integration/conferences/ncaaf/2018.html +++ b/tests/integration/conferences/ncaaf/2018.html @@ -4516,7 +4516,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/conferences/test_ncaab_conferences.py b/tests/integration/conferences/test_ncaab_conferences.py index ad3ec087..b63ca767 100644 --- a/tests/integration/conferences/test_ncaab_conferences.py +++ b/tests/integration/conferences/test_ncaab_conferences.py @@ -2,8 +2,8 @@ import pytest from flexmock import flexmock from os.path import join, dirname -from sportsreference import utils -from sportsreference.ncaab.conferences import Conference, Conferences +from sportsipy import utils +from sportsipy.ncaab.conferences import Conference, Conferences YEAR = 2018 diff --git a/tests/integration/conferences/test_ncaaf_conferences.py b/tests/integration/conferences/test_ncaaf_conferences.py index 9528e0d8..02c5a27b 100644 --- a/tests/integration/conferences/test_ncaaf_conferences.py +++ b/tests/integration/conferences/test_ncaaf_conferences.py @@ -2,8 +2,8 @@ import pytest from flexmock import flexmock from os.path import join, dirname -from sportsreference import utils -from sportsreference.ncaaf.conferences import Conference, Conferences +from sportsipy import utils +from sportsipy.ncaaf.conferences import Conference, Conferences YEAR = 2018 diff --git a/tests/integration/rankings/ncaab/2018-polls.html b/tests/integration/rankings/ncaab/2018-polls.html index f5201dad..5385a0e6 100644 --- a/tests/integration/rankings/ncaab/2018-polls.html +++ b/tests/integration/rankings/ncaab/2018-polls.html @@ -864,7 +864,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/rankings/ncaaf/2017-polls.html b/tests/integration/rankings/ncaaf/2017-polls.html index 47331534..84f33953 100644 --- a/tests/integration/rankings/ncaaf/2017-polls.html +++ b/tests/integration/rankings/ncaaf/2017-polls.html @@ -1489,7 +1489,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/rankings/test_ncaab_rankings.py b/tests/integration/rankings/test_ncaab_rankings.py index f36cf8ff..a91de96d 100644 --- a/tests/integration/rankings/test_ncaab_rankings.py +++ b/tests/integration/rankings/test_ncaab_rankings.py @@ -2,8 +2,8 @@ import pytest from flexmock import flexmock from os.path import join, dirname -from sportsreference import utils -from sportsreference.ncaab.rankings import Rankings +from sportsipy import utils +from sportsipy.ncaab.rankings import Rankings YEAR = 2018 diff --git a/tests/integration/rankings/test_ncaaf_rankings.py b/tests/integration/rankings/test_ncaaf_rankings.py index eda6a3c8..ccd0e38c 100644 --- a/tests/integration/rankings/test_ncaaf_rankings.py +++ b/tests/integration/rankings/test_ncaaf_rankings.py @@ -2,8 +2,8 @@ import pytest from flexmock import flexmock from os.path import join, dirname -from sportsreference import utils -from sportsreference.ncaaf.rankings import CFPRankings, Rankings +from sportsipy import utils +from sportsipy.ncaaf.rankings import CFPRankings, Rankings YEAR = 2017 diff --git a/tests/integration/roster/fb/tottenham-hotspur-2019-2020.html b/tests/integration/roster/fb/tottenham-hotspur-2019-2020.html index 305ca743..524c9301 100644 --- a/tests/integration/roster/fb/tottenham-hotspur-2019-2020.html +++ b/tests/integration/roster/fb/tottenham-hotspur-2019-2020.html @@ -4921,7 +4921,7 @@

About FBref.com

- + diff --git a/tests/integration/roster/mlb/2017.shtml b/tests/integration/roster/mlb/2017.shtml index 6dddfeb4..b416489c 100644 --- a/tests/integration/roster/mlb/2017.shtml +++ b/tests/integration/roster/mlb/2017.shtml @@ -2848,7 +2848,7 @@ sr_menus_setupMainNav_button_inline(); - + diff --git a/tests/integration/roster/mlb/altuvjo01.shtml b/tests/integration/roster/mlb/altuvjo01.shtml index a4fcd937..8cd6f88a 100644 --- a/tests/integration/roster/mlb/altuvjo01.shtml +++ b/tests/integration/roster/mlb/altuvjo01.shtml @@ -2885,7 +2885,7 @@ is used for other seasons. - + diff --git a/tests/integration/roster/mlb/verlaju01.shtml b/tests/integration/roster/mlb/verlaju01.shtml index bc3c4cc7..d1d9fa04 100644 --- a/tests/integration/roster/mlb/verlaju01.shtml +++ b/tests/integration/roster/mlb/verlaju01.shtml @@ -3667,7 +3667,7 @@ is used for other seasons. - + diff --git a/tests/integration/roster/nba/2018.html b/tests/integration/roster/nba/2018.html index 4bea47e6..12381c60 100644 --- a/tests/integration/roster/nba/2018.html +++ b/tests/integration/roster/nba/2018.html @@ -3177,7 +3177,7 @@

We're Social...for Statheads

- + diff --git a/tests/integration/roster/nba/anderry01.html b/tests/integration/roster/nba/anderry01.html index 70e2fdf9..d53ae2d4 100644 --- a/tests/integration/roster/nba/anderry01.html +++ b/tests/integration/roster/nba/anderry01.html @@ -907,34 +907,34 @@

Player News