A Twitter bot that reads the tweets of a given username and analyzes the user's personality using AI.

Overview

Twitter Chatgpt Analysor

Build Status NPM JavaScript Style Guide

Create a bot that reads the tweets of a given username and analyzes the user's personality using artificial intelligence..

Installation

git clone https://github.com/sabber-slt/twitter-analysor
cd twitter-analysor
yarn

Usage

Put your openai api key in .env file and Write your appropriate promt

const response = await openai.createChatCompletion({
  model: "gpt-3.5-turbo",
  messages: [
    {
      role: "user",
      // write your prompt here
      content: ` : \n ${text}`,
    },
  ],
  max_tokens: MAX_RESPONSE_TOKENS,
});

You can change the scroll amount to any desired number

await page.evaluate(() => {
  window.scrollBy(0, 1000);
});

API

u can get openai api key from here https://platform.openai.com/account/api-keys

You might also like...

It uses JavaScript and a web browser (for example, Firefox) to scrape tweets.

It uses JavaScript and a web browser (for example, Firefox) to scrape tweets.

Twitter JS Scraper Introduction There are many tools available for collecting tweets. Some of these tools make use of the official Twitter API, which

Nov 25, 2022

Generate #techtwitter tweets with OpenAI via Telegram.

Generate #techtwitter tweets with OpenAI via Telegram.

Responsible AI Hot Takes Generate and tweet awesome #techtwitter content with OpenAI via Telegram. After following FireShipIO's tutorial and hearing o

Mar 19, 2022

A logseq plugin to extract tweets. Optionally tag the tweet's author as well.

A logseq plugin to extract tweets. Optionally tag the tweet's author as well.

Logseq Twitter Extractor Plugin If this plugin helps you, I'd really appreciate your support. You can buy me a coffee here. A quick utility to parse a

Nov 17, 2022

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.

twitter-text This repository is a collection of libraries and conformance tests to standardize parsing of Tweet text. It synchronizes development, tes

Jan 8, 2023

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

🔎 Moralis NFT Snapshot Moralis NFT API will only return 500 itens at a time when its is called. For that reason, a simple logic is needed to fetch al

Jun 23, 2022

The awesomebooks project is a simple list, but separated into 3 parts and given a retro feel. The main page is where we can add books, and on another page we can see the list, and remove items. There is also a "contact-us" page.

Awesome Books This is the restructured version of the famous awesome-books project! Here you can find JavaScript broken into modules, using import-exp

Nov 15, 2022
Comments
  • Add Python Version

    Add Python Version

    Hi Sabber, thank you for your code. I want to refactor your code in python version in case of resource optimization. If you are ok, I will request a merge.

    opened by softrebel 0
  • Issue dotenv

    Issue dotenv

    Hi Sabber, When I run this code in my system, environment variables located in .env file doesn't show up. I fix this by installing dotenv package. If this is ok, please accept my merge rerquest

    opened by softrebel 0
Owner
Sabber Soltani
Full-Stack Ts/Js Developer
Sabber Soltani
A Twitter bot that tweets all ERC-721 NFT sales for a given contract 🤖

NFT Sales Twitter Bot ?? This was made to succeed my Opensea Sales Twitter Bot repo; while relying on the OpenSea Events API is simpler, it doesn't in

Daniel Griffin 73 Jan 2, 2023
Twitter bot to find what song is playing in a given uploaded twitter video.

what-song-is-this Twitter bot to find what song is playing in a given uploaded twitter video. How to setup. yarn install How to run. via npm script ya

Akinwande Akinboluwarin 17 Dec 11, 2022
A graphical web-based audio visualizer which reads music data using Pure JavaScript, and draws a graphical view in Canvas.

Audio Visualizer JS A graphical web-based audio visualizer which reads music data using Pure JavaScript, and draws a graphical view in Canvas. Demo: h

Max Base 9 Aug 9, 2022
Hides all the @saveToNotion @memdotai @threadreaderapp tweets from your Twitter timeline

This is a Plasmo extension project bootstrapped with plasmo init. Getting Started First, run the development server: pnpm dev # or npm run dev Open yo

null 2 Oct 11, 2022
BookStore is a website that allows a given user to view a list of books, to add a new book and remove a given book.

Project Name : BookStore CMS BookStore is a website that allows a given user to view a list of books, to add a new book and remove a given book. In or

Chris Siku 10 Aug 22, 2022
Fuck Twitter NFTs - Userscript to delete or block all occurances of NFT Users on Twitter

FuckTwitterNFTs Fuck Twitter NFTs - Userscript to delete or block all occurances of NFT Users on Twitter Userscript will by default, attempt to delete

Blumlaut 1 Jan 20, 2022
Register your username, log into the app and create your list of a to-do with local storage.

Todofy Todofy is a web app to create your to-do list with local storage. Explore the docs » View Demo · Report Bug · Request Feature Table of Contents

Anderson Marcelo Bastos Lima 5 Jun 30, 2022
EA Origin platform username checker

Origin EA Origin platform username checker. Instructions [?] Installation "npm i" [?] Fill in your Discord webhook details. "var webhookId = ``;" "va

yani 3 Sep 29, 2022
Get username & password from Chrome.

chrome_password Steal Get username & password from Chrome. (Now Only Windows) Try it npx chrome_password Installation npm install -g chrome_password o

迷渡 54 Dec 3, 2022
A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js

Twitter Broadcasts Search A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js. Live

Mohammad Mousad 2 Oct 6, 2022