Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt-channel-subscribe-1.0.1.tar.gz (2.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page