- New
gracefully()
function added to allow graceful failure of http requests, as per CRAN policy. All API calls to Wikipedia query modules are now wrapped ingracefully()
in the examples.
tidyr
moved from Imports to Suggests- Automatic unnesting, introduced in 0.1.8, removed. It was causing bugs in certain edge cases, when nested data frames duplicated columns from the enclosing data frame. Unnesting is now left to the user, as shown in the examples.
- Live API calls removed from test suite on CRAN; these are still tested in the package's CI pipeline.
- Fixed failing test due to Wikimedia server error
- First release
- Documentation errors removed
- Release candidate
- Updated documentation
- Fixed
perform_query()
bug again, to deal with results that return nothing for the given query for given pages - Fewer queries return nested data frames now
- Fixed bug where
perform_query()
would fail if only a single property was requested from an API:Properties module (i.e. usingnew_prop_query()
orquery_page_properties()
)
- "endpoint" parameter of
get_rest_resource()
renamed to "api" - New
xtools_page()
functions, allowing programmatic access to statistics about pages' edit histories, links and quality markers get_rest_resource()
now supports a 'quiet' failure mode, where 4xx and 5xx errors quietly return no data. Currently implemented for thextools_page()
functions
- The functions that perform queries to the Action API have been rewritten. There is now a family of three functions:
next_result()
,next_batch()
andretrieve_all()
. - Improvements to the formatting of results. Raw list columns are replaced with lists of tibbles, to enable easy navigation of the results using
tidyr::unnest()
.
build_category_tree()
: recur through category system to build up graph of subcategories and pages
query_category_members()
: the first of a set of new helper functions to provide user-friendly access to the Action API.query_list_of
renamed toquery_list_pages()
- New functions
query_by_title
,query_by_pageid()
andquery_by_revid()
to build new kinds of Action API queries - New type system for Action API: see constructors
new_prop_query()
,new_generator_query()
andnew_list_query()
get_history_count()
: find out how many times a page has been edited- Improved handling of
get_diff()
response data - Improved handling of
page_vector_functions()
response data. Most functions now return a tbl or list of tbls - Basic support for
wikimedia_rest_apis()
- 'perform_query_once()' renamed to
next_batch()
- Better parsing of response values. All functions will now return a simple vector, tbl_df, or a list of tbl_dfs, with the exception of the Action API Query modules, whose response object has been renamed
query_tbl()
for clarity
- Underlying interface to the three main APIs:
core_rest_request()
,wiki_action_request()
andwikimedia_rest_request()
- First few vector functions for getting page-level data
- First few helper functions to build more complex Action API requests
- First few data types for response values
- Added a
NEWS.md
file to track changes to the package. - New low-level helper,
get_rest_resource()
, for generating REST API calls; refactored existing calls to use this function - REST requests now accept query parameters
- New family of
page_vector_functions
to retrieve data about a vector of page titles, e.g.get_latest_revision()