searchProfile: Searching in Google+ Profiles

Description Usage Arguments Details Value See Also Examples

View source: R/search.R

Description

This function uses the Google+ API to search for a text string in profiles. Optionally, profiles can be restricted to a certain language.

Usage

1
searchProfile(q, language = NULL, results = 1, nextToken = NULL, cr = 1)

Arguments

q

The query string to search. The string is URL encoded automatically.

language

A language code. See https://developers.google.com/+/api/search#available-languages.

results

The approximate number of results that will be retrieved from Google+.

nextToken,cr

These are used internally to retrieve additional pages of answers from the Google+ API. Users won't need to set these arguments.

Details

The number of rows of the data frame returned is somewhat ambiguous. Specifying the results argument will try to get that many results. But there may be less (because Google could not find more) or more (because Google is organizing results on pages and it would be a waste to discard them automatically). If you really depend on getting not more rows than you expected, use standard selection (i.e. [) to trim the results.

Value

A data frame with the user ID, display names and profile type of the profiles that met the search criteria.

See Also

Google+ API documentation: https://developers.google.com/+/api/latest/people/search.

Examples

1
2
3
4
## Not run: 
searchProfile("cats")

## End(Not run)

plusser documentation built on May 2, 2019, 8:17 a.m.