Skip to content

An AI Agent to analyze what people are thinking by observing posts on X(Twitter)

Notifications You must be signed in to change notification settings

tomoima525/x-analysis-agent

Repository files navigation

x-research

A tool to verify your hypothesis about what people think from analyzing X(Twitter) posts.

x-research-eng.mp4

Preparation

  • Install dependencies (using bun, but other package managers should work too):
bun install
  • Create .env file and add OPENAI_TOKEN
OPENAI_API_KEY=sk-xxxxxxx
  • Copy auth.ts.sample file to auth.ts and fill in the required values. This is required to access X(Twitter) API.
  {
    name: "auth_token",
    value: "replace with your auth_token", // Update this token on your own!!!
    domain: ".x.com",
    path: "/",
    expires: 1737996835.631708, // Change this to the future timestamp!!!
    httpOnly: true,
    secure: true,
    sameSite: "None",
  },
  • You can retrieve auth_token using Chome Dev Tool(inside cookies section)
Screenshot 2025-01-21 at 4 03 36 PM

Running the tool

bun run index.ts

About

An AI Agent to analyze what people are thinking by observing posts on X(Twitter)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published