Create youtube playlist easily in python

In this article, we will see how to create a youtube playlist without writing much code or any selenium code. Follow below steps to create a playlist on youtube:-

Below are the detailed steps with code:-

  1. Install datakund
pip install datakund

2. Login to youtube through cookies. You can get cookies from Edit this Cookie Chrome Extension in simple steps:-

>Add this extension to chrome.

>Open youtube and log in.

>Click on extension icon, then click on export cookies.

>Now cookies will be copied to clipboard , replace list of cookies with these copied cookies.

from datakund.datakund import *obj=datakund()
youtube=obj.youtube()
cookie_list='list of cookies'
youtube.login_cookie(cookies=cookie_list)

3. Create playlist now.