Skip to content

Instantly share code, notes, and snippets.

@grsahil20
Created July 22, 2017 07:46
Show Gist options
  • Save grsahil20/c6d68da3dc8b3417343cca9637e90a07 to your computer and use it in GitHub Desktop.
Save grsahil20/c6d68da3dc8b3417343cca9637e90a07 to your computer and use it in GitHub Desktop.
plulralsight download courses
def download_course(url)
puts "Downloading: #{url}"
`youtube-dl --username YOUR_USER_NAME --password YOUR_PASSWORD --sleep-interval 10 #{url} -o '/...PATH_TO_DIRECTORY.../%(playlist)s/%(chapter_number)s. %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s'`
end
urls = %w{
http://www.pluralsight.com/courses/react-js-getting-started
http://www.pluralsight.com/courses/react-fundamentals
http://www.pluralsight.com/courses/react-flux-building-applications
http://www.pluralsight.com/courses/react-redux-react-router-es6
http://www.pluralsight.com/courses/react-boilerplate-building-scalable-apps
http://www.pluralsight.com/courses/react-styling-components
http://www.pluralsight.com/courses/jest-mastering-react-testing
http://www.pluralsight.com/courses/react-express-full-stack-app-build
http://www.pluralsight.com/courses/react-boilerplate-building-scalable-apps
}
urls.each do |url|
download_course url
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment