A python library to subscribe channel on youtube automatically.
Project description
Yt-Channel-Subscribe is a python library to subscribe youtube channel automatically.It currently runs only on windows.
Example
In this example we first import library, then we login with cookies, then we subscribe channel on youtube.
from yt_channel_subscribe import *
true=True;false=False
list_of_cookies=[
{
"domain": ".youtube.com",
"expirationDate": 1676431710.556339,
"hostOnly": false,
"httpOnly": false,
"name": "__Secure-3PAPISID",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "ZyIV9eK7BkQoQ36b/AmdNVfNhZBCfBCbHV",
"id": 1
}]
#please replace the above sample cookies with your cookies, can see below link of how to fetch cookies
youtube.login_cookie(cookies=list_of_cookies)
youtube.auto_subscribe(channel_url='https://www.youtube.com/channel/UCSaf-7p3J_N-02p7jHzm5tA')
This module depends on the following python modules
BtStudio
btstudio is needed for browser automation. As soon as this library is imported in code, automated browser will open up. To subscribe first login will need to be done. Login can be done either with credentials or via cookies
Complete documentation for YouTube Automation available here
Installation
pip install yt-channel-subscribe
Import
from yt_channel_subscribe import *
Login with credentials
youtube.login(username="youtube username",password="youtube password")
Login with cookies
youtube.login_cookie(cookies=list_of_cookies)
Subscribe
youtube.auto_subscribe(channel_url='channel_url')
Send Feedback to Developers
btstudio.send_feedback(feedback="Need help with this ......")
Cookies
To login with cookies Edit this Cookie Extension can be added to browser. Please check this link how to get cookies to login to your youtube.
Contact Us
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for yt-channel-subscribe-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b529dee83e7bfaa4279ab00ab8b599da10a24506f856d591086fe1011cb4ff6 |
|
MD5 | d893080992d713ea2210361ee7dbd68b |
|
BLAKE2b-256 | 89f6780f80daa0319f4f41b41bb2e7ce27be0167e86505d4ee675670de52b2d7 |