{ "info": { "author": "Jon Heller", "author_email": "jon.heller02@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "================\nNHL Logo Scraper\n================\n\n.. image:: https://badge.fury.io/py/nhl-logo-scraper.svg\n :target: https://badge.fury.io/py/nhl-logo-scraper\n\n.. image:: https://codecov.io/gh/blindman/nhl-logo-scraper/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/blindman/nhl-logo-scraper\n\n.. image:: https://travis-ci.org/blindman/nhl-logo-scraper.svg?branch=master\n :target: https://travis-ci.org/blindman/nhl-logo-scraper\n\n*Scrapes logos for all NHL teams, leagues, and networks*\n\nContents\n========\n\n.. contents::\n\n\nUsage\n=====\n\nFirst clone the project.\n\n::\n\n $ git clone https://github.com/blindman/nhl-logo-scraper.git\n\nOnce you've cloned the project, run the following commands to get the utility working in your terminal.\n\n::\n\n $ pip install .\n $ nhlscraper --help\n\nScrape\n\n::\n\n $ nhlscraper scrape [--output=DIR] [--format EXTENSIONS] [--archive]\n\n--output=DIR The directory to dump all of the files [default: ./output]\n\n--format EXTENSIONS Image output formats (svg and/or png) [default: svg]\n\n--archive Archive any previous logos that were downloaded [default: True]\n\n--debug Allow debugging logs through\n\nClean\n\n::\n\n $ nhlscraper clean [--dir=DIR] [--category CATEGORIES] [--full]\n\n--dir=DIR The directory that the files live in [default: ./output]\n\n--category CATEGORIES Categories to remove all files (league, network, team)\n\n--full Clean all files created by this tool (includes archives)\n\n--debug Allow debugging logs through\n\nOther\n\n::\n\n $ nhlscraper -h | --help\n\n::\n\n $ nhlscraper --version\n\n\nContributing\n============\n\nAssuming you've cloned the project and created a virtualenv, run the following command to work with the code.\n\n $ virtualenv --python python3 venv\n $ source venv/bin/activate\n $ pip install -e .[test]\n\nTo test the code, run the following command.\n\n $ python setup.py test\n\nNotes\n=====\n\nThis is a fork of my old `imageDownloader`__ repository which did the same thing but as a bash script and for the previous version of nhl.com\n\n__ https://github.com/blindman/imageDownloader\n\nYou may have noticed that `nhl.com`__ is requested and parsed to find ::code`nhl-logos.css` instead of retrieving the css file directly. This is because (I believe) the path to that file could potentially change. The current path is ::code::`.../builds/.../f0683b50089da6c16c1df297a9a74ce08e79b94b_1507226889/.../nhl-logos.css` and since the big chunk in the middle looks like a unique identifier I am going to assume it will change. I am looking to implement some sort of caching so it doesn't make a request every time.\n\n__ https://www.nhl.com/\n\n\nLicense\n=======\n\nMIT \u00a9 [Jon Heller](https://github.com/blindman)\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/blindman/nhl-logo-scraper", "keywords": "cli", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nhl-logo-scraper", "package_url": "https://pypi.org/project/nhl-logo-scraper/", "platform": "", "project_url": "https://pypi.org/project/nhl-logo-scraper/", "project_urls": { "Homepage": "https://github.com/blindman/nhl-logo-scraper" }, "release_url": "https://pypi.org/project/nhl-logo-scraper/1.1.0/", "requires_dist": [ "cairosvg", "cssselect", "cssutils", "docopt", "lxml", "requests", "codecov; extra == 'test'", "coverage; extra == 'test'", "pytest; extra == 'test'", "pytest-cov; extra == 'test'" ], "requires_python": "", "summary": "Scrape logos for all NHL teams", "version": "1.1.0" }, "last_serial": 3236058, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "65af63946ee4211580d1a9060d50b0ae", "sha256": "75e8a3b83d8a561ee081000a05b1d835dcc8e8520dcab655cebe189a526b647e" }, "downloads": -1, "filename": "nhl_logo_scraper-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65af63946ee4211580d1a9060d50b0ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9692, "upload_time": "2017-10-09T08:15:04", "url": "https://files.pythonhosted.org/packages/79/94/bd1c435f733004cb9c4de63b40e378afd01c7aba20560d153a393a5a57be/nhl_logo_scraper-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f199e25396959ec4e36e6c7a61e72c46", "sha256": "99271356d4617330cbddf306f8d830ce962082609acbf9ebfefdfc0bcd79be8f" }, "downloads": -1, "filename": "nhl-logo-scraper-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f199e25396959ec4e36e6c7a61e72c46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 463724, "upload_time": "2017-10-09T08:15:13", "url": "https://files.pythonhosted.org/packages/15/82/0ffe66591af4a3aaf32f5cc818d41a4965565a0f18490a51357996eadf18/nhl-logo-scraper-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "07dcbc64071f2cf93dd5cfcdb1c10a1c", "sha256": "344039e40e3703b2626f005a4885f038b9e2b913e4e5d1add956565ca0ab665c" }, "downloads": -1, "filename": "nhl_logo_scraper-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07dcbc64071f2cf93dd5cfcdb1c10a1c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9696, "upload_time": "2017-10-09T09:42:51", "url": "https://files.pythonhosted.org/packages/8f/60/2c26213037108dce4ac76002167acf697768c8c24f671853afe32203d1f9/nhl_logo_scraper-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86ba85f1f4528131af83c1fe21a80144", "sha256": "1af1ac83e83dbed3e9fe40299750bd0f9d8ba8c6088d6e41d797a541d5d8948e" }, "downloads": -1, "filename": "nhl-logo-scraper-1.0.2.tar.gz", "has_sig": false, "md5_digest": "86ba85f1f4528131af83c1fe21a80144", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8131, "upload_time": "2017-10-09T09:42:52", "url": "https://files.pythonhosted.org/packages/3b/70/618d543755fe6f2ffdceae4b47442607e0e93c030faa4bfaf305f37c9154/nhl-logo-scraper-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "525536ecbdc74cae0d078a780f47ac5a", "sha256": "edd14392527180d71a4c8e7bb6a9714c4f2cf1be7f8d44ddecb4e48ba470da2c" }, "downloads": -1, "filename": "nhl_logo_scraper-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "525536ecbdc74cae0d078a780f47ac5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10231, "upload_time": "2017-10-09T11:14:27", "url": "https://files.pythonhosted.org/packages/14/03/afdf3890d77c595526a020f7a3904e305444adefe81206be32af7b6331f1/nhl_logo_scraper-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "505bfb9ce034166e8e43a5daf830a3af", "sha256": "794814a1d22da3783e8d7febc98db8c11bd9b0fcf0ad8708dbe97428de7c80ce" }, "downloads": -1, "filename": "nhl-logo-scraper-1.1.0.tar.gz", "has_sig": false, "md5_digest": "505bfb9ce034166e8e43a5daf830a3af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8665, "upload_time": "2017-10-09T11:14:29", "url": "https://files.pythonhosted.org/packages/03/d4/34e8675aa5c399b562f792af67858695777d6c7629a401c6622f04adacb0/nhl-logo-scraper-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "525536ecbdc74cae0d078a780f47ac5a", "sha256": "edd14392527180d71a4c8e7bb6a9714c4f2cf1be7f8d44ddecb4e48ba470da2c" }, "downloads": -1, "filename": "nhl_logo_scraper-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "525536ecbdc74cae0d078a780f47ac5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10231, "upload_time": "2017-10-09T11:14:27", "url": "https://files.pythonhosted.org/packages/14/03/afdf3890d77c595526a020f7a3904e305444adefe81206be32af7b6331f1/nhl_logo_scraper-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "505bfb9ce034166e8e43a5daf830a3af", "sha256": "794814a1d22da3783e8d7febc98db8c11bd9b0fcf0ad8708dbe97428de7c80ce" }, "downloads": -1, "filename": "nhl-logo-scraper-1.1.0.tar.gz", "has_sig": false, "md5_digest": "505bfb9ce034166e8e43a5daf830a3af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8665, "upload_time": "2017-10-09T11:14:29", "url": "https://files.pythonhosted.org/packages/03/d4/34e8675aa5c399b562f792af67858695777d6c7629a401c6622f04adacb0/nhl-logo-scraper-1.1.0.tar.gz" } ] }