parseAttachments: Parsing of post attachments

Description Usage Arguments Value Examples

View source: R/parse.R

Description

This function takes a raw list of posts (as retrieved by harvestPage) and extracts any attachments it might find. It uses private (i.e. not exported) parsing functions for some known attachment types. At present, these are articles, albums, photos and videos. Other attachment types will just be cast generically to data.frames. The rownames of all these data frames are the ids of the posts that attachment belongs to. The columns of the returned data frames should be pretty much self-explanatory. If in doubt, check the Google+ API documentation https://developers.google.com/+/api/latest/activities#object.attachments.

Usage

1

Arguments

pl

a posting list as retrieved e.g. by harvestPage.

Value

A list containing one data frame per identified attachment type.

Examples

1
2
3
4
5
## Not run: 
myPosts <- harvestPage("115046504166916768425", ret="list")
myPosts.att <- parseAttachments(myPosts)

## End(Not run)

plusser documentation built on May 2, 2019, 8:17 a.m.