Updating video metadata with Dailymotion’s Python SDK

Dailymotion’s Python SDK allows you to update your video metadata once you uploaded them on our platform. Follow this quick tutorial to learn how to programmatically modify this information in a few lines of code.

2 steps to update your video metadata

1. Authentication

import importlib
_DAILYMOTION = importlib.import_module("dailymotion-sdk-python.dailymotion")
_DM = _DAILYMOTION.Dailymotion()  
        info={"username": _USERNAME, "password": _PASSWORD},

2. Metadata updating

You can now update your video metadata using our Python SDK. Use the HTTP POST method to modify the metadata by requesting to the appropriate URL. For example, this is how to edit the title of a video by posting to /video/<VIDEO_ID>:

result = _DM.post("/video/<xid>", {"title": "My new title"})

Read our article explaining How to Upload Videos on Dailymotion via an Excel file