Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Create svg graphs showing the connections between YouTube users and videos

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
Octocat-spinner-32 libgraph.py
Octocat-spinner-32 libyt.py
Octocat-spinner-32 ytusermap.py
Octocat-spinner-32 ytvidmap.py
README
Rough scripts for making graphs from youtube annotation relationships.

Created to help play John Robertson's The Dark Room (http://youtu.be/hvkjP6dqpfY) and then expanded to illustrate the connections between youtube musicians.

ytusermap.py - creates a graph of youtube usernames with edges representing links to other youtube user pages that appear in their videos.
ytvidmap.py - creates a graph of youtube videos with edges representing links to other videos.
libyt.py - handles the fetching and parsing of youtube data (currently just regular expressions and urlopens) as well as providing a caching layer
libgraph.py - handles the graph and svg generation by calling pygraphviz (which itself calls graphviz)

Usage:
python ytusermap.py [output_file] [username1] [username2] ... [usernamen]

python ytvidmap.py [output_file] [video_id1] [video_id2] ... [video_idn]

Note:
The YouTube GData API doesn't provide access to annotations which is why the re/urlopen approach was chosen
Something went wrong with that request. Please try again.