node-red-contrib-twitter-puppeteer

0.0.1 • Public • Published

node-red-contrib-twitter-puppeteer

A collection of nodes using puppeteer and browserless to impersonate a logged-in twitter account and interact with Twitter / X.

Prerequisites

  • Make sure to have an instance of browserless running and reachable by node-red.
    You can run a container easily like this:
docker run -p 3000:3000 ghcr.io/browserless/chromium

Install

Install via npm inside the node-red user directory (usually ~/.node-red):

npm install node-red-contrib-twitter-puppeteer

Usage

Add a node to a flow and configure the auth_token, as well as the connection to the browserless instance. Then run a message with the text as payload into the node.

Tweet

  • Whatever message is set as msg.payload will be tweeted out.

Direct Message

  • msg.payload will be used as a message and user IDs can be supplied as an array in msg.users:
[ "anachronisdev", "nodejs" ]

Puppeteer version

[!IMPORTANT]
As the currenly stable version of the node-red container uses node version 16, an older version of puppeteer is used that is still fully compatible with node version 16.

Package Sidebar

Install

npm i node-red-contrib-twitter-puppeteer

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

14.4 kB

Total Files

11

Last publish

Collaborators

  • theanachronism