Python

How to get thumbnail from vimeo video URL in Python?

How to get thumbnail from vimeo video URL in Python?, someone asked me to explain?

In this video tutorial I will show you how to get thumbnail from vimeo video URL using Python program.

If the vimeo video URL is https://vimeo.com/184241852 then you Just copy the video ID "184241852" and paste in https://vumbnail.com/194893557.jpg

The below python code to extract the video ID from a Vimeo video URL and return thumbnail URL of vimeo video.

CODE:

from urllib.parse import urlparse

vimeourl = "https://vimeo.com/184241852"
parse_url = urlparse(vimeourl)
video_id = parse_url.path.split('/')[1]
thumbnail_url = f"https://vumbnail.com/" + video_id + ".jpg"
print(thumbnail_url)

VIDEO GUIDE:

Post your comments / questions