https://github.com/lokeshkarra/twitter-spaces-ai-bot
https://github.com/lokeshkarra/twitter-spaces-ai-bot
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lokeshkarra/twitter-spaces-ai-bot
- Owner: lokeshkarra
- Created: 2024-05-07T18:42:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T13:37:08.000Z (8 months ago)
- Last Synced: 2025-02-16T14:43:56.362Z (8 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Twitter Spaces Ai Bot
## _The project is segmented into four main components:_- Audio Downloading : Utilized twspace-dl for downloading audio content
- Transcription : Employed the AssemblyAI API for audio transcription
- Text Summary : Generated summaries using the Ollama llama2-uncensored Model
- Tweet Generator : Implemented using tweepy## Installation
This project requires [Python](https://www.python.org/downloads/release/python-3110/) v3.11 to run.
- Set the following environment variables
```sh
export TWITTER_API_KEY="your_consumer_key"
export TWITTER_API_KEY_SECRET="your_consumer_secret"
export TWITTER_ACCESS_TOKEN="your_access_token"
export TWITTER_ACCESS_TOKEN_SECRET="your_access_token_secret"
export AAI_API_KEY="your_assembly_api_key"
```Install the dependencies.
```sh
python3 -m pip install requirements.txt
curl -fsSL https://ollama.com/install.sh | sh
```
- Make sure to install Ollama llama2-uncensored
- Make sure to create a dir named "/metadata"
- Download twitter cookies (use [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc?hl=en) to download cookies)- Inside metadata dir include twitter cookies
```sh
TwitterSpacesAiBot/metadata/twitter.com_cookies.txt
```## Execution
- Run the following command. Replace "link_to_spaces" with actual link
```sh
python main.py
```