ahmedbesbes / media-agent

Scrape data from social media and chat with it using Langchain
129 stars 18 forks source link
langchain large-language-models llms nlp nlproc python tweepy

Media Agent

Media Agent scrapes Twitter and Reddit submissions, summarizes them, and chats with them in an interactive terminal.


Demo

https://www.loom.com/share/f4954e7d34ef4b7b8491e2bf910e8521

Functionalities

Tools and libraries used

Third party services

Run the app locally

poetry install --with dev

Create .env file at the root of the project with the following keys:

OPENAI_API_KEY=<OPENAI KEY>
TWITTER_BEARER_TOKEN=<TWITTER BEARER TOKEN>
REDDIT_API_CLIENT_ID=<REDDIT_API_CLIENT_ID>
REDDIT_API_SECRET=<REDDIT_API_SECRET>
REDDIT_USER_AGENT=<REDDIT_USER_AGENT>

More info on these credentials here, here and here

make run-media-agent

Star History

Star History Chart

Future features:

This is an on-going project, so feel free to contribute:

Here's what I plan in the near future: