Description Usage Arguments Value References Examples
Retrieve structured posts data from news articles, blog posts and online discussions
1 2 3 4 | filter_posts(query, sort = "relevancy", ts = (Sys.time() - (3 * 24 * 60 *
60)), order = "desc", size = 100, accuracy_confidence = NULL,
highlight = FALSE, from = 0, quiet = !interactive(),
token = Sys.getenv("WEBHOSE_TOKEN"), ...)
|
query |
A string query containing the filters that define which posts will be returned. |
sort |
By default the results are sorted by relevancy. Acceptable values are
" |
ts |
A timestamp to start the search from. If a |
order |
|
size |
Total number of posts returned per request, ranges between |
accuracy_confidence |
|
highlight |
|
from |
Paging parameter (starting record number). Default is |
quiet |
By default, calls in interactive sessions will return updates during fetching.
Use |
token |
Your private access token. You get a unique access token when you sign up.
Store it in an environment variable |
... |
other parameters passed on to |
a list
with these fields:
totalResults
: The total number of posts matching your query (numeric)
moreResultsAvailable
: How many more results are available (numeric)
next
: A URL to get the next batch of posts matching your query. (character)
requestsLeft
: How many more requests are available in your current subscription plan. (numeric)
1 2 3 4 5 | ## Not run:
res <- filter_posts("(China AND United) language:english site_type:news site:bloomberg.com",
ts = 1213456)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.