{ "info": { "author": "Jens Finn\u00e4s", "author_email": "jens.finnas@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\nThis is a scraper for statistical data from the (https://www.viltolycka.se/statistik/viltolyckor-for-respektive-viltslag/)[viltolycka.se] built on top of the `Statscraper package `.\n\nThe scraper is limited to the data avialble through https://www.viltolycka.se/statistik/viltolyckor-for-respektive-viltslag/\n\nInstall\n-------\n\n.. code:: bash\n\n $ pip install viltolyckor_scraper\n\n\nExample usage\n-------------\n\n.. code:: python\n\n from viltolyckor import ViltolyckorScraper\n\n # Init scraper\n scraper = ViltolyckorScraper()\n\n # List all available datasets\n datasets = scraper.items\n # []\n\n # Select a dataset\n dataset = scraper.items[\"viltolyckor per viltslag\"]\n\n # List all available dimensions\n datasets = verksamhetsform.dimensions\n # [, , , ]\n\n # Make a query\n res = dataset.fetch() # Get latest available data for whole country by default\n\n # Analyze the results with Pandas\n df = res.pandas\n\n # Make a more specific query\n # Get data for a given period\n res = dataset.fetch({\"period\": \"2015\"})\n\n # Or from a specific region (all years)\n res = ds.fetch({\"region\": u\"Stockholms l\u00e4n\", \"year\": \"*\"})\n\n\nDevelop\n------\n\nSet up:\n\n.. code:: bash\n\n $ pip install -r requirements.txt\n\nRun tests:\n\n.. code:: bash\n\n $ make tests\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/jplusplus/viltolyckor_scraper/archive/0.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jplusplus/viltolyckor_scraper", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "viltolyckor_scraper", "package_url": "https://pypi.org/project/viltolyckor_scraper/", "platform": "", "project_url": "https://pypi.org/project/viltolyckor_scraper/", "project_urls": { "Download": "https://github.com/jplusplus/viltolyckor_scraper/archive/0.1.0.tar.gz", "Homepage": "https://github.com/jplusplus/viltolyckor_scraper" }, "release_url": "https://pypi.org/project/viltolyckor_scraper/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A scraper of statistical data from viltolyckor.se, built on top of Statscraper.", "version": "0.1.0" }, "last_serial": 3777326, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "364f8a06da24aca57aca9564dce97681", "sha256": "164bfcab96d0f982af45af47bdc2f3a00c45da4ae08a1fb0d0a9cb3ae4bdaf32" }, "downloads": -1, "filename": "viltolyckor_scraper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "364f8a06da24aca57aca9564dce97681", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3941, "upload_time": "2018-04-18T14:07:21", "url": "https://files.pythonhosted.org/packages/35/b4/4a452185c4114a31bae6eb9a7ddea413cdb1ebce45b25cb3a3cc053b919e/viltolyckor_scraper-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "364f8a06da24aca57aca9564dce97681", "sha256": "164bfcab96d0f982af45af47bdc2f3a00c45da4ae08a1fb0d0a9cb3ae4bdaf32" }, "downloads": -1, "filename": "viltolyckor_scraper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "364f8a06da24aca57aca9564dce97681", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3941, "upload_time": "2018-04-18T14:07:21", "url": "https://files.pythonhosted.org/packages/35/b4/4a452185c4114a31bae6eb9a7ddea413cdb1ebce45b25cb3a3cc053b919e/viltolyckor_scraper-0.1.0.tar.gz" } ] }