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.
Caution: Do not reference one instance of the Twitter data set in multiple data flows. Stopping one of such data flows, stops the Twitter data set in the other data flows.
Prerequisites:
Before you create a YouTube data set, obtain a Google API key from the Google developers website. This key is necessary to configure the YouTube data set and access the YouTube data.
- In Designer Studio, click +Create > Data Model > Data Set.
- 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.
Note: The Applies-to class for Twitter data sets must always be Data-Social-YouTube.
- Click Create and open.
- On the YouTube tab, enter the Google API key.
- Optional: 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
- Optional: 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.
- Optional: In the Ignore section, click Add author, and type the user names whose videos you want to ignore.
Note: See the YouTube Data API documentation for information about limitations when specifying keywords and authors.
-
Click Save.
Open topic with navigation