Git Product home page Git Product logo

wwdc-dl's Introduction

wwdc-dl

This CLI tool helps to download WWDC videos and PDF easily.

And is totally built with Swift 3 Swift 4 scripts!

This started as a quick hack at 4am. Read more.

Works for WWDC 2020, all the way to WWDC 2014.

Setup youtube-dl

Since WWDC 2017, the streams are in HLS. youtube-dl is used to conveniently download HLS streams (if you know the Swift way to download HLS, let me know)!

Install youtube-dl:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

youtube-dl have the added benefits such as resuming downloads.

Usage

# Download all PDFs
./wwdc-dl -a --pdfonly

# Download for specific session
./wwdc-dl -s 102,402

By default, the script will download the SD video and PDF in your ~/Documents/WWDC-2019.

Advanced Usage

# HD video
./wwdc-dl -s 102 -f HD

# Wants PDF only (no video)
./wwdc-dl -s 102 --pdfonly

# Download all
./wwdc-dl -a --pdfonly

# For some reason you don't want PDF
./wwdc-dl -s 102 --nopdf

# For other years
./wwdc-dl -s 102 -y 2014

# Specific the directory to save in
./wwdc-dl -s 102 -d /Volumes/AwesomeDrive/

# Always download using youtube-dl
./wwdc-dl -s 102 --youtubedl

Playground

This script is written in Playground environment, for convenience.

If you are developing, edit in Playground, then run ./compile.sh.

wwdc-dl's People

Contributors

micedvolvo avatar nicolai86 avatar samwize avatar takasek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wwdc-dl's Issues

compile.sh fails

SilverGryphon:wwdc-dl explorer$ sh compile.sh wwdc-dl-tmp.swift:1:3: error: consecutive statements on a line must be separated by ';' -e #!/usr/bin/swift ^ ; wwdc-dl-tmp.swift:1:4: error: expected expression -e #!/usr/bin/swift ^ wwdc-dl-tmp.swift:1:2: error: use of unresolved identifier 'e' -e #!/usr/bin/swift ^

I changed the file to be:


rm -f wwdc-dl-tmp.swift
echo "#!/usr/bin/swift" > wwdc-dl-tmp.swift
echo "" >> wwdc-dl-tmp.swift
cat wwdc-dl-Playground.playground/Contents.swift >> wwdc-dl-tmp.swift
xcrun -sdk macosx swiftc wwdc-dl-tmp.swift -o wwdc-dl

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.