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.
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/chromiumInstall
Install via npm inside the node-red user directory (usually ~/.node-red):
npm install node-red-contrib-twitter-puppeteerUsage
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.payloadwill be tweeted out.
Direct Message
msg.payloadwill 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 ofpuppeteeris used that is still fully compatible with node version16.
