node-red-contrib-twitter-puppeteer
v0.0.1
Published
A collection of nodes using [puppeteer](https://pptr.dev/) and [browserless](https://github.com/browserless/browserless) to impersonate a logged-in twitter account and interact with Twitter / X.
Downloads
3
Maintainers
Readme
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 inmsg.users
:
[ "anachronisdev", "nodejs" ]
Puppeteer version
[!IMPORTANT]
As the currenly stable version of the node-red container uses node version 16, an older version ofpuppeteer
is used that is still fully compatible with node version16
.