rtrek (version 0.2.0)

mb_search: Memory Beta site search

Description

Perform a Memory Beta site search.

Usage

mb_search(text, browse = FALSE)

Arguments

text

character, search query.

browse

logical, open search results page in browser.

Value

a data frame

Details

This function returns a data frame containing the title, truncated text preview, and relative URL for the first page of search results. It does not recursively collate search results through subsequent pages of results. There could be an unexpectedly high number of pages of results depending on the search query. Since the general nature of this search feature seems relatively casual anyway, it aims only to provide a first page preview.

Examples

Run this code
# NOT RUN {
if(has_internet()) mb_search("Worf")
# }

Run the code above in your browser using DataCamp Workspace