{"id":16572286,"url":"https://github.com/jonocarroll/sahansard","last_synced_at":"2025-03-05T14:20:48.942Z","repository":{"id":71014127,"uuid":"83132910","full_name":"jonocarroll/SAHansard","owner":"jonocarroll","description":"Wraps the SA Parliament Hansard API","archived":false,"fork":false,"pushed_at":"2017-02-26T12:16:48.000Z","size":182,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T02:53:19.435Z","etag":null,"topics":["api-wrapper","australia","hansard","parliament","politics","r"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonocarroll.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-25T13:19:18.000Z","updated_at":"2017-10-21T09:49:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"399b33b4-88d6-4182-8d38-f4b5fe35cc90","html_url":"https://github.com/jonocarroll/SAHansard","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/jonocarroll%2FSAHansard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2FSAHansard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2FSAHansard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonocarroll%2FSAHansard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonocarroll","download_url":"https://codeload.github.com/jonocarroll/SAHansard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242040107,"owners_count":20061982,"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":["api-wrapper","australia","hansard","parliament","politics","r"],"created_at":"2024-10-11T21:27:01.667Z","updated_at":"2025-03-05T14:20:48.905Z","avatar_url":"https://github.com/jonocarroll.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n# SA Hansard\n\n![](http://www.parliament.sa.gov.au/_layouts/PII3.InternetStyles/LACQUER/hdrCrest.jpg)\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/SAHansard)](https://cran.r-project.org/package=SAHansard)\n\nWraps the SA Hansard API (http://parliament-api-docs.readthedocs.io/en/latest/south-australia/), producing \"tidy\" `data.frame` objects or rendering the resulting HTML.\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\nsuppressPackageStartupMessages(source(\"R/scrape.R\"))\n```\n\n## Installation\n\nThis package can be installed from GitHub using the `devtools::install_github` method:\n\n```{r, eval=FALSE}\ndevtools::install_github(\"jonocarroll/SAHansard\")\n```\n\n## Examples\n\nObtain all SA Hansard records for a given year\n\n```{r, cache=TRUE}\nhansard_year(year = \"2017\")\n```\n\nFrom these, a given Table of Contents can be obtained (for a given `docid` from `hansard_year`)\n\n```{r, cache=TRUE}\n# normally just evaluating hansard_toc is what you want,\n# here I only want to show limited results\nglimpse(hansard_toc(docid = 'HANSARD-10-19980'))\n```\n\nFrom these, a HTML fragment can be obtained (use the `pdfid` from `hansard_toc`)\n\n***\n```{r, cache=TRUE, results='asis'}\n# the print method for this result opens the \n# rendered HTML fragment in the RStudio Viewer with \n# CSS obtained from the Hansard site.\n# Here I am just printing the content\nhansard_fragment(pdfid = 'HANSARD-10-19961')$content\n```\n\n***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonocarroll%2Fsahansard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonocarroll%2Fsahansard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonocarroll%2Fsahansard/lists"}