get_list_post: Get List Posts

Description Usage Arguments Value Examples

View source: R/get_list_post.R

Description

Get posts from CrowdTangle list. To use the function you need to first create the list in your CrowdTangle dashboard.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_list_post(
  listIds,
  startDate,
  endDate,
  token,
  data_path = NULL,
  searchTerm = NULL,
  language = NULL,
  count = 100
)

Arguments

listIds

string, list id obtained from CrowdTangle dashboard

startDate

string, the earliest date at which a post could be posted. Time zone is UTC. Format is “yyyy-mm-ddThh:mm:ss” or “yyyy-mm-dd” (defaults to time 00:00:00).

endDate

string, the latest date at which a post could be posted. Time zone is UTC. Format is “yyyy-mm-ddThh:mm:ss” or “yyyy-mm-dd” (defaults to time 00:00:00).

token

string, your CrowdTangle API access token

data_path

string, path to store data json

searchTerm

string, returns only posts that match this search term.

language

string, ISO 639-1 locale code

count

integer, the number of posts to return, the maximum is 100.

Value

a dataframe

Examples

1
2
3
4
5
6
7
## Not run: 
get_list_post("1234567",
              "2021-06-22T00:00:00",
              "2021-06-22T00:00:10",
              token)

## End(Not run)

justinchuntingho/CrowdtangleR documentation built on Dec. 21, 2021, 4:21 a.m.