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 hide the ID field from the Django admin?
- It is impossible to add a non nullable field without specifying a default. Django error
- ImportError: cannot import name 'url' from 'django.conf.urls' - Django Error
- How to Enable Virtualization in BIOS Security Settings in Intel Processors For Android Studio?
- Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.
- AttributeError: 'NoneType' object has no attribute 'get_text' - Python
- ModuleNotFoundError: No module named 'openpyxl' - Python
- Remove all special characters, punctuation except spaces from string - Python
Related Article