Collect metadata and download videos from multiple Vimeo accounts.
Clone the Github project
> git clone https://github.com/SciencesPoDRIS/vimeo.git
Go to the freshly created folder
> cd vimeo
Create a dedicated virtualenv
> mkvirtualenv vimeo
Install dependencies
> pip install -r requirements.txt
Copy the default conf file
> cp conf.default.json conf.json
Complete your conf.json file and add as many object as you need. You will find your token on the Vimeo app page
- Create your app
- Edit your app
- Click on the "Authentication" tab
- Click on "Generate an Access Token"
The "Client Identifier" will be token
.
The "Client Secrets" will be key
.
The freshly generated "Token" will be secret
.
Additionally, name
will be the name that you wanna give to this account.
email
should be the email address used to log to this accound.
And link
should be the vimeo link to this account.
> workon vimeo
> python script.py
The output will be 2 folders vimeo_videos
and vimeo_metadata
. vimeo_videos
contains all the downloaded videos whose names are Vimeo identifier and format is MP4. vimeo_metadata
contains all the downloaded metadata whose names are Vimeo identifier and format is JSON.
> workon vimeo
> python check.py
The output will be a file named "check_videos.csv" directly in the project folder.
id
: Unique Vimeo identifier of the video.
name
: Title of the video from Vimeo.
url
: Url of the video from Vimeo.
account
: Name of the user account that uploaded the video from the conf file.
video_downloaded
: 1
if the video has been downloaded, else 0
.
metadata_downloaded
: 1
if the metadata file has been dowloaed, else 0
.
video_md5_vimeo
: MD5 of this video according to Vimeo.
video_md5_calculated
: MD5 of this video calculated by the script.
video_integrity
: 1
if video_md5_vimeo
and video_md5_calculated
are equals, else 0
. So 1
means that the video file has been correctly downloaded.
- Open the conf.json file.
- Copy / paste an authentifications object.
- And fill it as explain here.