Skip to content

Channel Videos Fetcher Component

Peter Gusev edited this page May 2, 2015 · 1 revision

Description

This component can be used to retrieve service URLs of all videos from a Youtube channel (published after January 1, 2015).

Youtube channel videos fetcher

Requirements

  • Youtube Data API v3

  • Youtube API Key file

    In order for this component to work with Youtube Data API, an API key must be provided. This component assumes, that the key is stored in a text file called api.key which resides next to the .toe project file where this component is being used.

Interface

Inputs

  • channelId (DAT) - DAT Text input which contains Youtube's channel ID.
  • reload (CHOP) - CHOP input which triggers fetching process whenever value is changed.

Outputs

  • channelVideosOut (DAT) DAT Table out which contains service URL (1st column) and video titles (2nd column) of all videos from the specified channel.

Implementation

Implementation is purely "Pythonic" and is based on Search: list request.

NOTE: due to specific requirements, there is a date filter for the retrieved videos: only videos published after January 1, 2015 are retrieved. One can alter this behavior by modifying dateToGoBackTo variable on line 109 in ytchannel DAT Text.