Description Usage Arguments Details Value Examples
Returns Twitter's list of suggested user categories.
Returns users data for all users in Twitter's suggested categories.
1 2 3 4 5 | suggested_slugs(lang = NULL, token = NULL)
suggested_users(slug, lang = NULL, parse = TRUE, token = NULL)
suggested_users_all(slugs = NULL, parse = TRUE, token = NULL)
|
lang |
optional Restricts the suggested categories to the requested language. The language must be specified by the appropriate two letter ISO 639-1 representation. |
token |
a twitter token. |
slug |
required The short name of list or a category |
parse |
Logical indicating whether to parse the returned data into a data frame. See details for more on the returned users data. |
slugs |
Optional, one or more slugs returned by
|
Currently, this parsing process drops all
recursive (list) columns, which mostly means you are shorted some
entities data. To maximize users data, however, it is recommended to
make an additional lookup_users
call using the user IDs
returned by this function.
List of recommended categories which can be passed along as
the "slug" parameter in suggested_users
Recommended users
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
## get slugs
slugs <- suggested_slugs()
## use slugs to get suggested users
suggested_users(slugs$slug[1])
## alternatively, get all users from all slugs in one function
sugs <- all_suggested_users()
## print data
sugs
## for complete users data, lookup user IDs
sugs_usr <- lookup_users(sugs$user_id)
## view users data
sugs_usr
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.