# Search for articles about seagulls and retrieve their number of
# watchers
resp <- wiki_action_request() %>%
query_generate_pages("search", gsrsearch = "seagull") %>%
query_page_properties("info", inprop = "watchers") %>%
gracefully(next_batch)
if (!is_wikkitidy_failure(resp)) {
resp <- dplyr::select(resp, pageid, ns, title, watchers)
}
resp
Run the code above in your browser using DataLab