This bot manages "Daniel Labelle" Twitter fan page @DanielLabelleFP. It syncs videos shared on Youtube and Twitter.
- Get youtube channel videos automatically
- Get latest tweets from twitter
- Compare latest twitter video & latest youtube video
- Download new videos and upload to twitter
- Twitter developer platform elevated access (its a bit difficult to be accepted)
Install the dependencies
pip install -r requirements.txt
Create credentials.json with this structure:
{
"twitter": {
"access_token": "",
"access_secret" : "",
"consumer_key": "",
"consumer_secret": ""
},
"youtube": {
"channel_url": ""
}
}
Add submodules
git submodule update --init --recursive
Run the scripts directly or create a cronjob which regularly runs the script.
python bot.py