Skip to contents

stortingscrape 0.5.0

  • Major changes
    • The single-id data-retrieving functions now accept a vector of ids. Passing several ids (e.g. get_question(c(id1, id2))) retrieves them all in one call: functions returning a data.frame bind the rows together, while functions returning a list (e.g. get_mp_bio(), get_case(), get_publication()) return a named list of results keyed by id. A single id behaves exactly as before, so existing code is unaffected. Individual ids that fail are turned into warnings so a single bad id does not discard the successful ones.
    • All API calls now respect Stortinget’s documented rate limit of 100 calls per minute. Requests are throttled automatically and transient 429 Too Many Requests responses are retried (respecting the Retry-After header). The good_manners argument remains available for additional polite pacing.
  • Minor changes
    • The shared httr2 request pipeline was refactored into internal helpers (api_perform(), api_get()), removing roughly a thousand lines of duplicated boilerplate across the data-retrieving functions with no change to their returned output.
    • Minimum httr2 version is now 1.1.0.

stortingscrape 0.4.1

CRAN release: 2025-04-07

  • Minor changes
    • Fixed a CRAN issue with the get_topics() function throwing an error because of an example
      • Fixed by adding in a \dontrun{} for the example

stortingscrape 0.4.0

CRAN release: 2025-03-07

stortingscrape 0.3.2

  • Major changes
    • Changed get_mp_pic() to utilize the magick package instead if imagr when show_plot = TRUE
  • Minor changes
    • Added color pallette for current political parties in the Storting

stortingscrape 0.3.1

  • Minor changes
    • Fixed call to sleep in get_publication() function (was missing)
    • Redirected citation to inst/CITATION file
    • Fixed a minor error in the get_proposal_votes() function for the proposal_delivered_by_mp variable

stortingscrape 0.3.0

CRAN release: 2024-01-18

  • Minor changes
    • Fixed an error in get_session_cases(), where the structuring of case proposers did not run in parallel, as was intended.

stortingscrape 0.2.0

  • Major changes:
    • Replaced magrittr (%>%) pipes with native pipes (|>)
    • Converted all get_*() functions from httr to httr2
    • Changed $spokespersons in get_session_cases() to data frame. This will break backwards compatibility (sorry!).
    • Rewrote the decision_text variable inget_session_decisions() so that residual html is stripped from the output. This might break some text processing applications (sorry!).
    • Rewrote the date and info sections of get_session_hearings() to data.frames instead of lists. This might break some text processing applications (sorry!).
  • Minor changes:
    • Rewrote the proceedings_steps variable inget_proceedings() to be scalable to changes in the API. Should not break backwards compatibility.

stortingscrape 0.1.4

stortingscrape 0.1.3

CRAN release: 2023-03-23

  • Major changes # * Fixed an issue with get_mp_bio(), which broke after an API update.
    • Fixed typo issue – renaming some variables in `get_session_questions()
  • Minor changes
    • Added pkgdown page via gh-pages
    • Changed color of text in logo
    • Added a NEWS.md file to track changes to the package.