Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabber-slt/twitter-analysor
A Twitter bot that reads the tweets of a given username and analyzes the user's personality using AI.
https://github.com/sabber-slt/twitter-analysor
bot chatgpt express nodejs openai puppeteer python selenium twitter
Last synced: about 2 months ago
JSON representation
A Twitter bot that reads the tweets of a given username and analyzes the user's personality using AI.
- Host: GitHub
- URL: https://github.com/sabber-slt/twitter-analysor
- Owner: sabber-slt
- Created: 2023-05-09T10:10:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-10T16:44:49.000Z (about 1 year ago)
- Last Synced: 2023-12-10T17:35:46.393Z (about 1 year ago)
- Topics: bot, chatgpt, express, nodejs, openai, puppeteer, python, selenium, twitter
- Language: Python
- Homepage: https://sabber.dev
- Size: 92.8 KB
- Stars: 21
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Twitter Chatgpt Analysor
This analyzer bot is written in Python and JavaScript separately. It utilizes Selenium for Python and Puppeteer for JavaScript.
The functionality of this robot is as follows: it retrieves the Twitter username from the user and navigates to their page. Here, you have the option to determine the scrolling depth of the page. The greater the scrolling depth, the longer the analysis process will take. It can even read all of the user's tweets.
After extracting the data, it filters the text and analyzes it using the parameters we have set for ChatGPT in order to determine the user's personality.## Features
- Fetch and process user data from Nitter.
- Clean and format the fetched text.
- Integrate with OpenAI's GPT-3.5-turbo model for advanced text processing.## Installation
In order to use it, you must first acquire an API key from the OpenAI website. OpenAI API
```sh
git clone https://github.com/sabber-slt/twitter-analysor
cd twitter-analysor
yarn
```## Enviroment variables
```sh
PORT=[Your preferred port]
OPENAI_API_KEY=[Your OpenAI API key]
OPENAI_URL=[OpenAI API URL]
NITTER_FILTER=[Your Nitter filter settings]
```