{"id":23290994,"url":"https://github.com/jplusplus/siris_scraper","last_synced_at":"2025-04-06T17:44:24.703Z","repository":{"id":57467925,"uuid":"121763135","full_name":"jplusplus/siris_scraper","owner":"jplusplus","description":"A scraper of statistical data from the Siris database of Skolverket, built on top of Statscraper.","archived":false,"fork":false,"pushed_at":"2021-01-19T22:22:51.000Z","size":40,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-14T21:04:01.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jplusplus.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-16T14:58:37.000Z","updated_at":"2021-01-19T22:22:54.000Z","dependencies_parsed_at":"2022-09-19T08:20:19.935Z","dependency_job_id":null,"html_url":"https://github.com/jplusplus/siris_scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fsiris_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fsiris_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fsiris_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fsiris_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jplusplus","download_url":"https://codeload.github.com/jplusplus/siris_scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526675,"owners_count":20953141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T05:13:48.715Z","updated_at":"2025-04-06T17:44:24.672Z","avatar_url":"https://github.com/jplusplus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nThis is a scraper for statistical data from the Skolverket's (http://siris.skolverket.se/siris)[SIRIS database]  built on top of the `Statscraper package \u003chttps://github.com/jplusplus/statscraper\u003e`.\n\nThe scraper is limited to the data avialble through http://siris.skolverket.se/siris/ris.export_stat.form\n\nInstall\n-------\n\n  pip install siris_scraper\n\n\nExample usage\n-------------\n\n.. code:: python\n\n  from siris.scraper import SirisScraper\n\n  # Init scraper\n  scraper = SirisScraper()\n\n  # List all schooltypes\n  verksamhetsformer = scraper.items\n  # [\u003cVerksamhetsform: 15 (Fritidshem)\u003e, \u003cVerksamhetsform: 10 (Förskola)\u003e, \u003cVerksamhetsform: 14 (Förskoleklass)\u003e,... ]\n\n  # Select a schooltype\n  verksamhetsform = verksamhetsformer.get_by_label(u\"Öppen förskola\")\n\n  # List all available datasets\n  datasets = verksamhetsform.items\n  # [\u003cSirisDataset: 40 (Kostnader per kommun)\u003e...]\n\n  # Select a dataset\n  dataset = datasets.get_by_label(\"Kostnader per kommun\")\n\n  # Make a query\n  res = dataset.fetch()  # Get latest available data\n  #res = dataset.fetch({\"period\": \"2015\"})  # Get data for a given period\n  #res = dataset.fetch({\"period\": \"*\"})  # Get data all periods\n\n  # List all avilable periods\n  print(dataset.periods)\n\n  # Use the result\n  # ...in Python Pandas for example\n  dataframe = res.pandas\n\n\nDevelop\n-------\n\nSet up:\n\n  pip install -r requirements.txt\n\nRun tests:\n\n  make tests\n\nDeploy\n------\n\nTo pypi:\n\n  python3 deploy_to_pypi.py\n\nTodo\n----\n\n- The scraper does not handle \"uttag\" at the moment. Fetches latest by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fsiris_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjplusplus%2Fsiris_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fsiris_scraper/lists"}