Twitter Chatgpt Analysor
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);
});