This class inherits from the Instance
class and
implements the functions of extracting the text and the date of an ytbid type file.
This class inherits from Instance
and implements the
obtainSource
and obtainDate
abstracts functions.
bdpar::Instance
-> ExtractorYtbid
Inherited methods
bdpar::Instance$addBanPipes()
bdpar::Instance$addFlowPipes()
bdpar::Instance$addProperties()
bdpar::Instance$checkCompatibility()
bdpar::Instance$getBanPipes()
bdpar::Instance$getData()
bdpar::Instance$getDate()
bdpar::Instance$getFlowPipes()
bdpar::Instance$getNamesOfProperties()
bdpar::Instance$getPath()
bdpar::Instance$getProperties()
bdpar::Instance$getSource()
bdpar::Instance$getSpecificProperty()
bdpar::Instance$invalidate()
bdpar::Instance$isInstanceValid()
bdpar::Instance$isSpecificProperty()
bdpar::Instance$setData()
bdpar::Instance$setDate()
bdpar::Instance$setProperties()
bdpar::Instance$setSource()
bdpar::Instance$setSpecificProperty()
new()
Creates a ExtractorYtbid
object.
ExtractorYtbid$new(path, cachePath = NULL)
path
A character
value. Path of the ytbid file.
cachePath
A character
value. Path of the cache
location. If it is NULL, checks if is defined in the
"cache.youtube.path" field of bdpar.Options
variable.
obtainId()
Obtains the ID of the specific Youtube's comment. Reads the ID of the file indicated in the variable path.
ExtractorYtbid$obtainId()
getId()
Gets the ID of an specific Youtube's comment.
ExtractorYtbid$getId()
Value of Youtube's comment ID.
obtainDate()
Obtains the date from a specific comment ID. If the comment has been previously cached the comment date is loaded from cache path. Otherwise, the request is perfomed using YouTube API and the date is then formatted to the established standard.
ExtractorYtbid$obtainDate()
obtainSource()
Obtains the source from a specific comment ID. If the comment has previously been cached the source is loaded from cache path. Otherwise, the request is performed using on YouTube API.
ExtractorYtbid$obtainSource()
Instance
character
representation
clone()
The objects of this class are cloneable with this method.
ExtractorYtbid$clone(deep = FALSE)
deep
Whether to make a deep clone.
YouTube connection is handled through the Connections
class
which loads the YouTube API credentials from the bdpar.Options object.
Additionally, to increase the processing speed, each Youtube query is stored
in a cache to avoid the execution of duplicated queries. To enable this option,
cache location should be in the "cache.youtube.path" field of
bdpar.Options variable. This variable has to be the
path to store the comments and it is necessary that it has two folder named:
"_spam_" and "_ham_"
bdpar.Options
, Connections
,
ExtractorEml
, ExtractorSms
,
Instance