Skip to content

alexeygrigorev/vimeo-download

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads segmented audio+video from Vimeo and saves as .mp4

This script is useful for cases where youtube-dl is unable to find the master url, for example on pages that require login or cookies.

Installation

Install requirements with pip install -r requirements.txt

Installing ffmpeg

Compilation instruction: https://trac.ffmpeg.org/wiki/CompilationGuide

For ubuntu users:

sudo add-apt-repository ppa:mc3man/trusty-media && sudo apt-get update 
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8E51A6D660CD88D67D65221D90BD7EACED8E640A
sudo apt-get install ffmpeg

(The instructions are taken from here - warning: Russian!)

For MacOS users:

brew install ffmpeg

Usage

To use this script, the master url needs to be manually extracted from the page:

python vimeo-download.py --url "http://...master.json?base64_init=1" --output <optional_name>

To get the master url:

  1. Open the network tab in the inspector
  2. Find the url of a request to the master.json file
  3. Run the script with the url as argument

You can download multiple files in parallel with GNU Parallel:

parallel -a master-files.txt python vimeo-download.py --url "{}"

Where master-files.txt contains a list of master URLs

Acknowledgements

Code merges the following gists:

Alternatives

For a more convenient experience use youtube-dl ( http://rg3.github.io/youtube-dl/ ) if youtube-dl is able to find the url

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%