Skip to main content

An easy-to-use library for receiving YouTube push notification for video upload and update.

Project description

ytnoti

An easy-to-use library for receiving YouTube push notification for video upload and update.


ytnoti is designed to help you receive YouTube push notifications for video upload and update in an easy and efficient way.

How it works

This library uses YouTube Data API v3 via PubSubHubbub to receive push notifications, so you can receive notifications in real-time without constantly polling the YouTube API.

In addition, this method doesn't require any API key, so you can use this library without any quota limit.

Installation

This library requires Python 3.11 or higher.

pip install ytnoti

Simple Example

For more examples, please visit the examples folder.

from ytnoti import YouTubeNotifier, Notification

notifier = YouTubeNotifier()

@notifier.upload()
async def listener(notification: Notification):
    print(f"New video from {notification.channel.name}: {notification.video.title}")

notifier.subscribe(["UC9EEyg7QBL-stRX-7hTV3ng"])  # Channel ID of SpeedyStyle
notifier.run()

Documentation

Read the wiki for more information.

Community

If you have any questions about this library please visit my Discord server.

discord invite

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

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

ytnoti-0.1.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

ytnoti-0.1.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page