Changelog
Source:NEWS.md
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 adata.framebind 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 Requestsresponses are retried (respecting theRetry-Afterheader). Thegood_mannersargument remains available for additional polite pacing.
- The single-id data-retrieving functions now accept a vector of ids. Passing several ids (e.g.
- Minor changes
- The shared
httr2request 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
httr2version is now 1.1.0.
- The shared
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
- Fixed by adding in a
- Fixed a CRAN issue with the
stortingscrape 0.4.0
CRAN release: 2025-03-07
- Major changes
-
Stortinget’s API updated their ID scheme for all questions
- I can not guarantee that it will be possible to convert previously downloaded data to the new format. The API change did not facilitate this. If you need to append your data, I advice to start from scratch
- I am not happy about this, but I can do nothing
-
get_question()has been updated to the new scheme, and thelegacy_idvariable added -
get_meeting_agenda()is updated withlegacy_idkeys
-
Stortinget’s API updated their ID scheme for all questions
stortingscrape 0.3.2
- Major changes
- Changed
get_mp_pic()to utilize themagickpackage instead ifimagrwhenshow_plot = TRUE
- Changed
- 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 theproposal_delivered_by_mpvariable
- Fixed call to sleep in
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.
- Fixed an error in
stortingscrape 0.2.0
- Major changes:
- Replaced
magrittr(%>%) pipes with native pipes (|>) - Converted all get_*() functions from
httrtohttr2 - Changed $spokespersons in
get_session_cases()to data frame. This will break backwards compatibility (sorry!). - Rewrote the decision_text variable in
get_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!).
- Replaced
- Minor changes:
- Rewrote the proceedings_steps variable in
get_proceedings()to be scalable to changes in the API. Should not break backwards compatibility.
- Rewrote the proceedings_steps variable in
stortingscrape 0.1.4
- Major changes
- Fixed a bug in
get_session_questions(), where the presence of unanswered questions returned an error instead ofNA - Removed a variable from
get_vote()because it suddenly disappeared from the API. - Fixed an issue where
ifelse()lines returned only one element when it was supposed to return several due to someone not realizing the vectorization rules of the function. Affected functions were:get_case(),get_hearing_program(),get_question(),get_result_vote(),get_session_cases(), andget_session_questions(). Onlyget_case()was significant, in that it listed all bill sponsors as being from the same party.
- Fixed a bug in
- Minor changes
- Fixed some typos in the readme
- Reworked the
read_obt()function for the package not to rely ondplyr - Added a hex badge logo. Extremely important.
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.mdfile to track changes to the package.