A tool to verify your hypothesis about what people think from analyzing X(Twitter) posts.
x-research-eng.mp4
- 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 toauth.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(insidecookies
section)

bun run index.ts