JoinTheAlliance / agent-twitter-client

Twitter client for agents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

agent-twitter-client

This is a package based on @the-convocation/twitter-scraper with added functionality for sending tweets and retweets. This package does not require Twitter APi to use, and will run in both the browser and server.

Installation

npm install agent-twitter-client

Setup

Configure environment variables for authentication.

TWITTER_USERNAME=    # Account username
TWITTER_PASSWORD=    # Account password
TWITTER_EMAIL=       # Account email
TWITTER_COOKIES=     # JSON-serialized array of cookies of an authenticated session
PROXY_URL=           # HTTP(s) proxy for requests (optional)

About

Twitter client for agents

License:MIT License


Languages

Language:TypeScript 99.4%Language:JavaScript 0.6%