Cite is a Discord bot that helps you extract insights and data from Twitter Spaces. It downloads, transcribes, and analyzes Twitter Spaces, providing summaries, highlights, and in-depth analysis.
- Download Twitter Spaces: Download spaces using their URL.
- Transcribe Spaces: Generate accurate transcriptions of the audio.
- Summarize Conversations: Get concise summaries of the key points discussed.
- Generate Highlights: Extract important highlights from the conversation.
- Analyze Transcriptions: Get in-depth analysis of the conversation.
- Generate Highlight Cards: Create visually appealing images with key highlights.
- PDF Generation: Download transcriptions, summaries, and analyses as PDFs.
Cite uses the following technologies:
twspace_dl: To download Twitter Spaces.- Whisper: For audio transcription.
- OpenAI API: To generate summaries, highlights, and analysis.
- Discord API: To interact with Discord.
- WeasyPrint: To generate PDF files.
- Pillow (PIL): To create highlight card images.
- Python 3.7 or higher
- Discord bot token
- OpenAI API key
twspace_dlwhisperopenaidiscord.pyweasyprintPillow(PIL)html2textmarkdown2
-
Clone the repository:
git clone https://github.com/Tobitheprof/cite.git
-
Install Dependencies:
pip install -r requirements.txt
-
Replace the TOKEN variable in the bot.py file with your actual discor bot token. To learn how to get this token and setup permissions to invite the bot to your server, take a look at this article
-
Replace the OpenAI API Key with your OpenAI API Key from OpenAI
-
Set up your environment:
- Create a cookies.txt file with your Twitter cookies (see twspace_dl documentation).
Note: Place it in the same directory as your bot.py file.
To get cookies from your twitter account, download this extension and export your cookies to txt.
-
Run the bot:
python bot.py
MADE WITH 💗 by Tobi TheRevolutionary.