Skip to content

A small python 3.x script to mirror a youtube-chanel with a mastodon account

License

Notifications You must be signed in to change notification settings

produnis/youtoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouToot

A small python 3.x script to post youtube-videos from a youtube-chanel on a mastodon account. It is based on https://github.com/cquest/tootbot by Christian Quest

The script only needs mastodon login/pass to post toots.

It gets the videos from RSS available at https://www.youtube.com/feeds/videos.xml?channel_id=CHANELIDOFDESIRE (where CHANELIDOFDESIRE is the ID of the youtube-chanel you want to follow).

A sqlite database is used to keep track of tweets than have been tooted.

The script is simply called by a cron job and can run on any server (does not have to be on the mastodon instance server).

Setup

# clone this repo
git clone https://github.com/produnis/youtoot.git
cd youtoot

# install required python modules
pip3 install -r requirements.txt

Useage

python3 youtoot.py <youtube_chanel_id> <mastodon_account> <mastodon_password> <mastodon_domain>

Example:

python3 youtoot.py UCT0hbLDa-unWsnZ6Rjzkfug [email protected] **password** botsin.space

It's up to you to add this in your crontab :)

Live Demo

See this bot in action here:

About

A small python 3.x script to mirror a youtube-chanel with a mastodon account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published