Get free account of video indexer on Microsoft and obtain:
pip install tovi
or
pip3 install tovi
from tovi import ToVI
CONFIG = {
'SUBSCRIPTION_KEY': {your subscription key},
'LOCATION': {location: set "trial" if you are using a new trial account},
'ACCOUNT_ID': {your ACCOUNT_ID}
}
## instantiate the object
vi = ToVI(
vi_subscription_key=CONFIG['SUBSCRIPTION_KEY'],
vi_location=CONFIG['LOCATION'],
vi_account_id=CONFIG['ACCOUNT_ID']
)
## select source (for now you-tube only, the name of the video and the language used)
vi.YouTubeToVI(youtube_link = "https://www.youtube.com/watch?v=a8fHgx9mE5U",
video_name = "lego",
video_language = "English")
result = vi.get_video_info(vi.video_id)
Thanks to bklim for his great python_video_indexer_lib.