Tracks twitter spaces and sends it to a discord webhook.

Overview

auto-twitter-space

Overview

A program that tracks twitter spaces and sends it to a discord webhook. It uses the twitter api to find twitter spaces and then the m3u8 url for the space is found using selenium and will have it printed on console and posted using a discord webhook. Optionally It can also download the twitter space after it ends.

Installation and Requirements

This program requires a few non-standard modules all of which can be installed using the requirements text file. A requirements text file has been included and the command pip3 install -r requirements.txt (or pip) can be used to install the required dependencies(except FFMPEG and ChromeDriver). ChromeDriver is also required to get the m3u8 url so make sure the chrome driver version matches your browser version. Also ensure chromedriver is in the same directory as this program.

How To Use

Since this program runs and obtains the Twitter Spaces through the twitter API, users must go to the twitter developer portal and sign up or login. Afterwards, create a project app and obtain the API Key and Secret, Bearer Token, and the Access Token. Put these information inside the const.py(if you haven't already renamed const.py.example to const.py, do so now)

With the Twitter authorization/authentication out of the way you can optionally obtain the discord webhook url and put it in const.py if you want Twitter Space notification to also be posted onto your discord channel.

Optionally you can also specify whether to download the Twitter Space and/or the download location. There are two download options one using the default twspace.py file provided which will only download Twitter Space from the Japan area and can post the downloaded file to discord within it's limits. The second download method is by using Ryu's downloader. Download is optional as it has not been thoroughly tested so use at your own risk(just double check if the file was downloaded and whether it is the full file)

With all the setting up out of the way the program can run by calling the main/index file twitter_space_bot.py

Note: Do not share these key and tokens!

Note 2: I was not the original creator of twspace.py, credits go to whoever made it on our group discord server! I had to make a lot of changes to suit my own needs though.

Note 3: The API limit for twitter spaces are 300 requests per a 15 minute window. The program makes 1 request per interval so adjust the SLEEP_TIME accordingly. If for some reason the m3u8 url can't seemingly be found increase the SLEEP_TIME.

Note 4: So far this has only been tested on Windows 10 and with the chrome driver.

You might also like...
A twitter multi-tool for OSINT on twitter accounts.

TwitterCheckr A twitter multi-tool for OSINT on twitter accounts. Infomation TwitterCheckr also known as TCheckr is multi-tool for OSINT on twitter a

twitter bot tha uses tweepy library class to connect to TWITTER API

TWITTER-BOT-tweepy- twitter bot that uses tweepy library class to connect to TWITTER API replies to mentions automatically and follows the tweet.autho

Twitter-bot - A Simple Twitter bot with python

twitterbot To use this bot, You will require API Key and Access Key. Signup at h

Twitter-redesign - Twitter Redesign With Django

Twitter Redesign A project that tests Django and React knowledge through a twitt

KTUN Öğrenci Bilgi Sistemine bağlanıp her 15 dakikada notları kontrol eden ve değişiklik olduğu zaman size Discord Webhook ile mesaj atan uygulama.
KTUN Öğrenci Bilgi Sistemine bağlanıp her 15 dakikada notları kontrol eden ve değişiklik olduğu zaman size Discord Webhook ile mesaj atan uygulama.

KTUN_Obis KTUN Öğrenci Bilgi Sistemi KTUN Öğrenci Bilgi Sistemine selenium kullanarak girip setttings.py dosyasında verdiğiniz bilgeri doldurup ardınd

Discord Webhook Proxy for Roblox payloads.
Discord Webhook Proxy for Roblox payloads.

RoProxy A Discord webhook proxy passthrough for roblox. Setup Your port and endpoint are in the config.json, make sure both app.py and config.json are

Discord Webhook Spammer (fastest)

Discord Webhook Spammer A simple fast asynchronous webhook spammer. Spammer Features Fast message spamming. Controllable speed. Noob friendly. Usage N

A Powerful Discord Webhook spammer
A Powerful Discord Webhook spammer

RocketHook | The discord spammer Some links: Telegram | Github FEATURES 🤖 Hide your ass and be a good robot ! Full proxies support HTTP/S, SOCKS4/5 S

simple discord token grabber with webhook hiding feature.
simple discord token grabber with webhook hiding feature.

Token Grabber A simple Discord token grabber with base64 webhook encoding, it uses pastebin as a database to get webhook, so next time u dont get your

Comments
  • Reminder issues

    Reminder issues

    It will not work if a reminder is set.

    [ERROR] 'NoneType' object has no attribute 'strftime' https://github.com/Spicadox/auto-twitter-space/blob/b11791d1cc970e9672a57e3265c253eb300d17b7/twitter_space_bot.py#L153-L156

    space[0] is <Space id=id state=scheduled>

    I guess I need to add some handling of reminder exceptions...

    opened by nullnyan 2
  • Default language issue with aria-label attribute

    Default language issue with aria-label attribute

    Since the browser language changes depending on the region, the --lang option is used to fix the language to English. This will fix aria-label to English.

    opened by nullnyan 1
Owner
Sam Phung
A data hoarder and archivist with an interest in Anime and Vtubers!
Sam Phung
Get Notified about vaccine availability in your location on email & sms ✉️! Vaccinator Octocat tracks & sends personalised vaccine info everday. Go get your shot ! 💉

Vaccinater Get Notified about vaccine availability in your location on email & sms ✉️ ! Vaccinator Octocat tracks & sends personalised vaccine info ev

Mayukh Pankaj 6 Apr 28, 2022
LEC_Ditto is a bot that tracks the follows and unfollows of Twitter accounts

✨ LEC_Ditto ✨ I'm Ditto, and I'm a bot ?? . Getting Started | Installation | Usage Getting Started LEC_Ditto is a bot that tracks the follows and unfo

null 2 Mar 30, 2022
A python script to download twitter space, only works on running spaces (for now).

A python script to download twitter space, only works on running spaces (for now).

null 279 Jan 2, 2023
StudyLion is a Discord bot that tracks members' study and work time while offering members to view their statistics and use productivity tools such as: To-do lists, Pomodoro timers, reminders, and much more.

StudyLion - Discord Productivity Bot StudyLion is a Discord bot that tracks members' study and work time while offering members the ability to view th

null 45 Dec 26, 2022
A Discord Bot that tracks and displays cryptocurrencies using the CoinMarketCap API

PyBo - A Crypto Inspired Discord Bot Pybo (paɪ boʊ) is a Discord bot that utilizes the discord.py API wrapper to run the bot. Pybo also integrates the

null 0 Nov 17, 2022
MemeBot - A discord bot that tracks how good people's memes are

MemeBot A discord Meme "Karma" Tracking bot Dependancies Make sure you have pymongo installed and a mongodb cluster setup with two collections. pip in

Uday Sharma 3 Aug 10, 2022
Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs.

Twython Twython is a Python library providing an easy way to access Twitter data. Supports Python 3. It's been battle tested by companies, educational

Ryan McGrath 1.9k Jan 2, 2023
Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the pointless 3200 tweet limit imposed by Twitter.

Twitter Nuke Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the puny and pointl

Mayur Bhoi 73 Dec 12, 2022
A free and open-source discord webhook spammer.

Discord-Webhook-Spammer A free and open-source discord webhook spammer. Usage Depending on your python installation your commands may vary. Below are

null 3 Sep 8, 2021
Twitter bot that finds new friends in Twitter.

PythonTwitterBot Twitter Bot Thats Find New Friends pip install textblob pip install tweepy pip install googletrans check requirements.txt file Env

IbukiYoshida 4 Aug 11, 2021