Description Usage Arguments Value Examples
View source: R/parse_diffbot.R
Take the results of get_diffbot and parse into dataframe. Optionally include tag data or image data in final frame.
1 | parse_diffbot(diffbot_output, include = NULL)
|
diffbot_output |
A object of class diffbot_api. |
include |
NULL for just the page data, 'images' to include image data or 'tags' to include tags data. |
A dataframe. If just the page data this will be a one row dataframe. Otherwise will either have a row for each image or each tag.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
url <- 'http://techcrunch.com/2012/05/31/diffbot-raises-2-million-seed-round-for-web-content-extraction-technology/'
api_key <- '12345'
t <- get_diffbot(url, api_key)
parse_diffbot(t)
parse_diffbot(t, 'tags')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.