Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python library to retreive video content and metadata

Project description


# Features
- Retreive metadata from any URL (not only direct YouTube link)
- Retreive metadata such as viewcount, title, description, author, thumbnail, keywords
- Supported providers: YouTube, Vimeo, Facebook, Instagram.
- Save thumbnails into the Django-like storage
- Works with Python 2.6+

# Installation
vex can be installed via pip:
pip install vex
# Usage examples
Here is how to use the module in your own python code.
from vex.factory import Factory
create a factory instance:
factory = Factory()

extract video metadata from url:
url = ""
video = factory.extract(url)

get certain attributes from video variable:

import pprint

[{'category': u'Entertainment',
'created_at': datetime.datetime(2016, 3, 3, 13, 55, 8),
'description': u'Academy Award\xae-nominated director Orlando von Einsiedel, Executive Producer J.J. Abrams, Bad Robot and Epic Digital have joined forces with Google and XPRIZE to create a documentary web series about the people competing for the Google Lunar XPRIZE ( The Google Lunar XPRIZE is the largest prize competition of all time with a reward of $30 million and aims to incentivize entrepreneurs to create a new era of affordable access to the Moon and beyond, while inspiring the next generation of scientists, engineers, and explorers.\n\nThis character-driven, emotional, awe-inspiring series of 9 short films will follow a selection of the teams currently racing to complete their missions. It will explore the lives of their charismatic, quirky members, the sacrifices they have made to get to where they are today, and crucially, what drives them on this incredible journey.\n\nFollow us here to catch the series, and on:\n\nTwitter: \n\nFacebook:\n\nGoogle+:\n\n\nDirector \nOrlando von Einsiedel\n\nExecutive Producer\nJ.J. Abrams\n\nProducers\nJoshua Davis\nLindsey Weber\nJoshuah Bearman \nAndrew Lee \n\nCo-Producers \nJon Drever \nBecca Perry \nBen Rosenblatt\n\nStory Producer \nSteven Leckart\n\nLine Producer \nAdam Mitchenall\n\nDirector of Photography \nFranklin Dow\n\nEditors\nKatie Bryer \nAndy Cardy \nRebecca Valente \nNathan Orloff\n\nComposer\nPatrick Jonsson\n\nProduction Managers\nSunny Dimitriadou \nElena Andreicheva\nJosie Wicks\n\nCamera Assistants\nWill Hadley \nJamie Ackroyd\nNaomi Hancock\n\nSound Recordist\nSara Lima\n\nAssistant Editors \nYoussef Bouhassis \nAilene Roberts \nLaura Creecy\n\nPost-Production Management \nAmelia Franklin \nPhilip Hoang\n\nGraphics\nSal Sciortino\n\nColorist \nJuan Ignacio Cabrera\n\nConform Artist \nPeter Amies\n\nSound Re-Recording Mixers\nLindsey Alvarez\nCraig Henighan\n\nProduction Services \nGrain Media\n\nVisual Effects\nKelvin Optical, Inc.\n\nGoogle Brand Marketing\nMichael Tabtabai\nCameron Luby\nYasemin Denari Southworth \nBen Quesnel\nMatt Hirst\n\nProduction Support\nMike Silver\nCory Bennett Lewis\nJosh Tate \nMorgan Dameron \nAmir Mojarradi\nEboni Price\nKristofer Cross\n\nSpecial Thanks\nChanda Gonzales-Mowrer \nDavid Locke \nCharles Scott\nRobby Stambler \nMatt Evans \nJesse Goldsmith \nChrysta Burton \nAli Lowndes\nDiane Coote\nRichard Jephcote\nNick Rowley \nAlice Martineau \n72andSunny\nKelly Vicars \nHarry Spitzer\nNatalie So \n\nRed Whittaker\nCarnegie Mellon University\n\nJackie Erickson\n\nJohn Thornton\nDavid Weinstein\nBrian Solomon\nJohn Williams\n\nAdditional footage provided by:\nNASA\nGoddard Space Flight Center\nArizona State University',
'keywords': [u'Moon Shot',
u'google lunar xprize',
u'bad robot',
u'jj abrams',
u'Orlando von Einsiedel',
u'peter diamandis',
u'Moon Express',
u'Part-Time Scientists',
u'Epic Digital'],
'low_resolution': {'height': '360',
'url': u'',
'width': '640'},
'provider': 'youtube',
'remote': '',
'standard_resolution': {'height': '720',
'url': u'',
'width': '1280'},
'thumbnail': '',
'title': u'Moon Shot | Official Trailer | Google Lunar XPRIZE',
'user': {'image': None,
'name': u'GoogleLunarXPRIZE',
'uid': u'GoogleLunarXPRIZE'},
'watch_count': 2437411}]

Project details

Release history Release notifications

This version
History Node


Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page