Seeing Google couldn't sign you in? Lets solve it

--

In this article, we will see how to login to youtube without writing selenium code and using credentials.

Below are the detailed steps with code:-

  1. Install datakund
pip install datakund

2. Import datakund

from datakund.datakund import *

3. Create youtube object, which will open automated chrome browser for youtube.

obj=datakund()
youtube=obj.youtube()

4. 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.

false=False;true=True
cookie_list='list of cookies'
youtube.login_cookie(cookies=cookie_list)

You will be successfully signed in at this point

--

--