/agent-twitter-client

Twitter client for agents

Primary LanguageTypeScriptMIT LicenseMIT

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)