{ "info": { "author": "Rob Howley", "author_email": "howley.robert@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "nhlscrapi: NHL Scraper API\n===============================\n\nPurpose\n--------\n\nProvide a Python API for accessing NHL game data including play by play, game summaries, player stats et c. The library hides the guts of the NHL website scraping process and encapsulates not only the data gathering, but data output. This project is inspired by the `R `_ package *nhlscrapr*, an all around must for NHL analytics geeks and R power users.\n\nnhlscrapi is in the early/initial stages, but will be updated regularly. Currently, the package support most of the game summary reports, but all of the important and essential ones.\n\nRelated projects:\n - `nhlscrapr `_\n - `py-nhl `_\n\nInstallation\n------------\n\nGetting started is as easy as::\n\n pip install nhlscrapi\n\nFor more information on the setup, see the `PyPi: nhlscrapi `_. The documentation for the package can be found at `nhlscrapi: NHL Scraper API `_.\n\nUsage Example\n--------------\nScrape data for game 1226 of 2014, Ottawa vs Pittsburgh.\n\n.. code-block:: python\n\n from nhlscrapi.games.game import Game, GameKey, GameType\n from nhlscrapi.games.cumstats import Score, ShotCt, Corsi, Fenwick\n\n season = 2014 # 2013-2014 season\n game_num = 1226 #\n game_type = GameType.Regular # regular season game\n game_key = GameKey(season, game_type, game_num)\n\n # define stat types that will be counted as the plays are parsed\n cum_stats = {\n 'Score': Score(),\n 'Shots': ShotCt(),\n 'Corsi': Corsi(),\n 'Fenwick': Fenwick()\n }\n game = Game(game_key, cum_stats=cum_stats)\n\n # also http requests and processing are lazy\n # accumulators require play by play info so they parse the RTSS PBP\n print('Final : {}'.format(game.cum_stats['Score'].total))\n print('Shootout : {}'.format(game.cum_stats['Score'].shootout.total))\n print('Shots : {}'.format(game.cum_stats['Shots'].total))\n print('EV Shot Atts : {}'.format(game.cum_stats['Corsi'].total))\n print('Corsi : {}'.format(game.cum_stats['Corsi'].share()))\n print('FW Shot Atts : {}'.format(game.cum_stats['Fenwick'].total))\n print('Fenwick : {}'.format(game.cum_stats['Fenwick'].share()))\n\n # http req for roster report\n # only parses the sections related to officials and coaches\n print('\\nRefs : {}'.format(game.refs))\n print('Linesman : {}'.format(game.linesman))\n print('Coaches')\n print(' Home : {}'.format(game.home_coach))\n print(' Away : {}'.format(game.away_coach))\n\n # scrape all remaining reports\n game.load_all()\n\nCurrent Release: v0.4.4\n------------------------\nThis is a pre-release and is not stable and fully fit for production. The first full stable release (v1.0.0) will be made available once the framework for all `NHL game reports `_ are completed. Currently, Play-by-Play, Home/Away TOI, Roster, Face-off Comparison and Event Summary reports are functional.\n\nLicense\n--------\nThe NHL Scraper API is a free Python library provided under Apache License version 2.0.\n\n - Free software: Apache License, v2.0\n - Documentation: `nhlscrapi: NHL Scraper API `_", "description_content_type": null, "docs_url": "https://pythonhosted.org/nhlscrapi/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/robhowley/nhlscrapi", "keywords": "nhlscrapi", "license": "Apache Software License version 2.0", "maintainer": null, "maintainer_email": null, "name": "nhlscrapi", "package_url": "https://pypi.org/project/nhlscrapi/", "platform": "any", "project_url": "https://pypi.org/project/nhlscrapi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/robhowley/nhlscrapi" }, "release_url": "https://pypi.org/project/nhlscrapi/0.4.4/", "requires_dist": null, "requires_python": null, "summary": "NHL Scrapr API for Python", "version": "0.4.4" }, "last_serial": 1898277, "releases": { "0.3.3": [ { "comment_text": "", "digests": { "md5": "7ae8b3fe5439e549df4a98976bac5cb2", "sha256": "0de1107c650f00f7ef300f19c899445b7ee793d3463c6b2093f2ad8283fa625b" }, "downloads": -1, "filename": "nhlscrapi-0.3.3.tar.gz", "has_sig": false, "md5_digest": "7ae8b3fe5439e549df4a98976bac5cb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106285, "upload_time": "2015-08-02T22:50:31", "url": "https://files.pythonhosted.org/packages/c1/8a/7e4cbe278c236a00fb72868fccb1ff4e6e91c4a412c77d2ae66eff99c082/nhlscrapi-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "2fcaf4d917cc89a5066b3ae6285a7934", "sha256": "5a8209325d7203181305adf3d7541ecdedbac8e1ff5e9030b99c2646ec34f8d0" }, "downloads": -1, "filename": "nhlscrapi-0.3.4.tar.gz", "has_sig": false, "md5_digest": "2fcaf4d917cc89a5066b3ae6285a7934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106293, "upload_time": "2015-08-03T00:04:50", "url": "https://files.pythonhosted.org/packages/fd/08/daf0cabd931a76b1e4ece7864d50a0d0fd9375facb62333db02228f16d13/nhlscrapi-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "ac4f630cb75daea084556926826a2a0b", "sha256": "c9af8cf4d23316d864d66f10b2ecf660f6875f50b91ee114adfa4157b88410f3" }, "downloads": -1, "filename": "nhlscrapi-0.3.5.tar.gz", "has_sig": false, "md5_digest": "ac4f630cb75daea084556926826a2a0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106230, "upload_time": "2015-08-04T00:54:08", "url": "https://files.pythonhosted.org/packages/86/a8/3a3158c6cbad875bd1da0da75f1f983043c3f26e346f8bf445b4c548a22f/nhlscrapi-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "5ecdaef74e0e7fcb5075357c5d82d593", "sha256": "127f9f7599bac8f003eef9475023967c9564f0011157fd6fcf269b8417974e01" }, "downloads": -1, "filename": "nhlscrapi-0.3.6.tar.gz", "has_sig": false, "md5_digest": "5ecdaef74e0e7fcb5075357c5d82d593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 109121, "upload_time": "2015-08-05T12:58:41", "url": "https://files.pythonhosted.org/packages/58/25/2354fe521e57874df0133acdf4c7ff5ad501df1b3eeb70377b8afe73d8a6/nhlscrapi-0.3.6.tar.gz" } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "d456f0170b14e8f03db7f75050430d88", "sha256": "40c7d6bd878421b875bef214f5566133c25e515da5d351e69db99a8e51286266" }, "downloads": -1, "filename": "nhlscrapi-0.3.7.tar.gz", "has_sig": false, "md5_digest": "d456f0170b14e8f03db7f75050430d88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 109129, "upload_time": "2015-08-05T22:51:58", "url": "https://files.pythonhosted.org/packages/bd/ef/79d8a0ee423337e12c58578a72166aa9dd4457fd0ed41a572988066f5e5a/nhlscrapi-0.3.7.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "bdc1b25ae074d7c88dc76ad19aeae572", "sha256": "6b88cd15d23d84d0cc066f0e4da622bd46669f284f7a211adffd9b30f264a6cd" }, "downloads": -1, "filename": "nhlscrapi-0.4.0.tar.gz", "has_sig": false, "md5_digest": "bdc1b25ae074d7c88dc76ad19aeae572", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123373, "upload_time": "2015-08-20T00:56:16", "url": "https://files.pythonhosted.org/packages/27/9c/8f84e5e2378b4afc239634cfd6c963a589b1c1980b88f17b9d997c47ad1c/nhlscrapi-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "60d8790932c336da3b14b33bfbae42cc", "sha256": "8fce8022a5886cfdc41c8bb0d0ae7ce819aa1f91dabe7c891f4507b242f6f681" }, "downloads": -1, "filename": "nhlscrapi-0.4.1.tar.gz", "has_sig": false, "md5_digest": "60d8790932c336da3b14b33bfbae42cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123429, "upload_time": "2015-10-30T01:46:07", "url": "https://files.pythonhosted.org/packages/ca/e3/d1c43629136ae14b2ebb00a7f365fd58d5f716e77f731a6b0c2f3ed27e76/nhlscrapi-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "02641e1dfb7e7e10f2aaeae9782fa279", "sha256": "53b139a244290304b865ecab6619c870ad192266a3011c4e011205c8c545f145" }, "downloads": -1, "filename": "nhlscrapi-0.4.2.tar.gz", "has_sig": false, "md5_digest": "02641e1dfb7e7e10f2aaeae9782fa279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123737, "upload_time": "2015-12-22T03:44:42", "url": "https://files.pythonhosted.org/packages/73/cf/748e85ff6ccc03fee9a415c9051d9b9144b4296bd78bea3aa581f1eb1bab/nhlscrapi-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "60893d16b387bf293d38f48e7a47ffef", "sha256": "949e9ebeffdd767234f84a40ad44105fb69389635367a229473a555db4c300b3" }, "downloads": -1, "filename": "nhlscrapi-0.4.3.tar.gz", "has_sig": false, "md5_digest": "60893d16b387bf293d38f48e7a47ffef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123990, "upload_time": "2015-12-22T04:16:44", "url": "https://files.pythonhosted.org/packages/55/25/26f2c3d92a99663d5303224f7f57d96695cc175e80e29981eed0ddde6ce6/nhlscrapi-0.4.3.tar.gz" } ], "0.4.4": [] }, "urls": [] }