Creating a YouTube data set record
Use the YouTube data set to filter the metadata of the YouTube videos according to the keywords that you specify. First, create a YouTube data set to connect with the YouTube Data API. Next, reference the data set from a data flow and use the Text Analyzer rule to analyze the metadata of the YouTube videos.
In Dev Studio, click.
Enter the data set label and identifier.
From the Type list, select YouTube.
Specify the ruleset, Applies-to class, and ruleset version of the data set.The Applies-to class for YouTube data sets must always be Data-Social-YouTube.
Click Create and open.
On the YouTube tab, enter the Google API key.
Select the Retrieve video URL check box to retrieve the URL of a YouTube video if the metadata of the video contains the keywords that you specify.
Select the Retrieve comments check box to retrieve all users’ comments about a YouTube video whose metadata contains the keywords that you specify.
In the Keywords section, click Add keyword, and enter one or more keywords that you want to find in the video metadata.The system performs text analysis on the metadata that contains the keywords.
In the Ignore section, click Add author, and type the user names whose videos you want to ignore.See the YouTube Data API documentation for information about limitations when specifying keywords and authors.
- Types of Data Set rules
Learn about the types of data set rules that you can create in Pega Platform.
- About Data Set rules
Data sets define collections of records, allowing you to set up instances that make use of data abstraction to represent data stored in different sources and formats. Depending on the type selected when creating a new instance, data sets represent Visual Business Director (VBD) data sources, data in database tables or data in decision data stores. Through the data management operations for each data set type, you can read, insert and remove records. Data sets are used on their own through data management operations, as part of combined data
- Data Set rules - Completing the Create, Save As, or Specialization form