amicus-investments / gpt4twitter

Macroeconomics AI Twitter bot powered by Federal Reserve Data and OpenAI's GPT-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gpt4twitter

Simple macroeconomics AI Twitter bot powered by Federal Reserve Data and OpenAI's GPT-4

Here's the YouTube Video including flow chart diagram.

Installation

pip install pandas_datareader sklearn schedule tweepy pytz

Set your API keys via environment variables, eg. OpenAI API key and Twitter API access.

export FRED_API_KEY=YOUR_KEY
export OPENAI_API_KEY=YOUR_KEY
export TACCESS_KEY=YOUR_KEY
export CONSUMER_KEY=YOUR_KEY
export CONSUMER_SECRET_KEY=YOUR_KEY
export TACCESSTOKEN_KEY=YOUR_KEY

Example usage

> python src/main.py

About

Macroeconomics AI Twitter bot powered by Federal Reserve Data and OpenAI's GPT-4

License:MIT License


Languages

Language:Python 100.0%