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
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
Related Article