{ "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 statistcial databases http://www.socialstyrelsen.se built on top of the `Statscraper package `.\n\nVery much alpha. Only tested on a selected topics.\n\nInstall\n-------\n\n pip install -r requirements.txt\n\n\nExample usage\n-------------\n\n.. code:: python\n\n from socialstyrelsen import SocialstyrelsenScraper\n\n scraper = SocialstyrelsenScraper()\n scraper.items # List databasese\n # [, ...]\n\n dataset = scraper.get(\"ekonomisktbistandmanad\") # Get a specific (by id)\n\n # Inpect dataset\n print dataset.dimensions\n # [, , , , , ]\n\n print dataset.dimensions[\"OMR\"].allowed_values\n # [, , ...]\n\n # Make a query, you have to explicitly define all dimension values you want\n # to query.\n res = dataset.fetch({\n \"TABELL\": \"1\",\n \"OMR\": [\"01\", \"03\"],\n \"MANAD\": [\"4\", \"5\", \"6\"],\n \"AR\": \"2017\",\n \"MATT\": \"1\",\n })\n\n # Do something with the result\n df = res.pandas\n\n\nTODO\n----\n\n- Currently only properly tested on \"ekonomiskt bist\u00e5nd\"\n- Handle large queries.\n- Handle dimension labels\n\n\nDevelop\n------\n\nRun tests:\n\n make tests\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jplusplus/socialstyrelsen-scraper/archive/0.0.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jplusplus/socialstyrelsen-scraper", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "socialstyrelsen_scraper", "package_url": "https://pypi.org/project/socialstyrelsen_scraper/", "platform": "", "project_url": "https://pypi.org/project/socialstyrelsen_scraper/", "project_urls": { "Download": "https://github.com/jplusplus/socialstyrelsen-scraper/archive/0.0.2.tar.gz", "Homepage": "https://github.com/jplusplus/socialstyrelsen-scraper" }, "release_url": "https://pypi.org/project/socialstyrelsen_scraper/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "A scraper of statistical data from socialstyrelsen.se built on top of Statscraper.", "version": "0.0.2" }, "last_serial": 3380121, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bd5f4e3490cafb50cf5e14af47d1e165", "sha256": "045ceb1d6218b7c08958e860b72e0faa308b7213b5fb3621eae944a0cb603e5f" }, "downloads": -1, "filename": "socialstyrelsen_scraper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bd5f4e3490cafb50cf5e14af47d1e165", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5828, "upload_time": "2017-12-01T10:48:48", "url": "https://files.pythonhosted.org/packages/a5/92/022eef4753ed9ab7c7dd937be1c2fa00566c656a8e8d3e7ad15943c96015/socialstyrelsen_scraper-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "798eb17a715ac5dbeb60efb146800f80", "sha256": "13154cc5a740869c4515bb4b1600d08449dd6c36a24ea3a5b6b79e8c2406e691" }, "downloads": -1, "filename": "socialstyrelsen_scraper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "798eb17a715ac5dbeb60efb146800f80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6087, "upload_time": "2017-12-01T13:17:04", "url": "https://files.pythonhosted.org/packages/81/58/51c4bbc5e270bf311c4c5b728a6470a139c4c72290a00730899d181a8e41/socialstyrelsen_scraper-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "798eb17a715ac5dbeb60efb146800f80", "sha256": "13154cc5a740869c4515bb4b1600d08449dd6c36a24ea3a5b6b79e8c2406e691" }, "downloads": -1, "filename": "socialstyrelsen_scraper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "798eb17a715ac5dbeb60efb146800f80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6087, "upload_time": "2017-12-01T13:17:04", "url": "https://files.pythonhosted.org/packages/81/58/51c4bbc5e270bf311c4c5b728a6470a139c4c72290a00730899d181a8e41/socialstyrelsen_scraper-0.0.2.tar.gz" } ] }