GithubHelp home page GithubHelp logo

sophiebits / wwdc-session-transcripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asciiwwdc/wwdc-session-transcripts

0.0 3.0 0.0 14.76 MB

WWDC Session Transcripts

Home Page: http://asciiwwdc.com

Ruby 100.00%

wwdc-session-transcripts's Introduction

WWDC Session Transcripts

As used by ASCIIwwdc.

Methodology

Transcripts for WWDC sessions are aggregated from subtitles included in session videos from 2010, 2013, and 2014.

The code used to automatically scrape and collect this information for 2014 sessions is as follows:

require 'open-uri'
require 'nokogiri'

year = 2014
doc = Nokogiri::HTML(open("https://developer.apple.com/videos/wwdc/#{year}/"))

doc.search("p.download").each do |download|
  href = download.at("a").attr('href')
  uri = URI(href)
  uri.path = uri.path.split('/')[0...-1].join('/') + '/'
  uri.query = nil

  p session = uri.path.split('/').last.to_i

  begin
    subtitles = []
    m3u8 = open(URI.join(uri, "subtitles/eng/prog_index.m3u8"))
    m3u8.each_line do |line|
      next unless /\.webvtt$/ === line
      webvtt = open(URI.join(uri, "subtitles/eng/", line.strip))
      subtitles << webvtt.read
    end

    File.open("#{session}.vtt", "w") do |f|
      f.write subtitles.join("\n")
    end
  rescue => e
    p "! #{session} (#{e})"
    next
  end
end

Additional transcripts for 2012 WWDC content was graciously contributed by Rev.com, and community volunteers.

Copyright

All content copyright ยฉ 2010โ€“2014 Apple Inc. All rights reserved.

wwdc-session-transcripts's People

Contributors

clafou avatar dmthomas avatar jawwad avatar jtbandes avatar mattt avatar mcdado avatar mczonk avatar natecook1000 avatar nevil avatar simonwhitaker avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.