YouTube Data Tools

Video Network Module

This module creates a network of relations between videos, starting from a search or a list of video ids. It will also generate a network of channels based on the same relations. (If a video from one channel points to the video of another channel, an edge is created and the more often that happens, the more weight the connection gets.)

It retrieves "related videos" from the search/list#relatedToVideoId API endpoint and creates a graph file in GDF format.

Crawl depth specifies how far from the seeds the script should go. Crawl depth 0 will get only the relations between seeds. Using many seeds and the maximum crawl depth (2) can take a very long time or the script will very probably run out of memory. Start small.

Parameters

1) choose a starting point:

Search query:
(this is passed to the search endpoint)

optional ISO 639-1 relevance language:

optional ISO 3166-1 alpha-2 region code: (default = US)

Iterations:
(max. 10, one iteration gets 50 items)
Rank by:
Published:
limit search to videos published in a specific timeframe (format: yyyy-mm-ddThh:mm:ssZ - timezone: UTC):

after:    

before:


Seeds:
(video ids, comma separated)

2) set additional parameters:

Crawl depth:
(values are 0, 1 or 2)