Description Usage Arguments References Examples
Fetch all structured posts data from news articles, blog posts and online discussions
1 2 3 4 | fetch_posts(query, sort = "relevancy", ts = (Sys.time() - (3 * 24 * 60 *
60)), order = "desc", accuracy_confidence = NULL, highlight = FALSE,
pre_alloc_max = 30, 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 |
|
accuracy_confidence |
|
highlight |
|
pre_alloc_max |
If you know the approximate number of API calls that will need
to be made to retrieve a full set of records for a query, use that number
here (defaults to |
quiet |
By default, calls in interactive sessions will return fetch status updates.
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 (eventually) to |
1 2 3 4 5 | ## Not run:
res <- fetch_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.