A simple TypeScript framework for declaratively composing bots with Puppeteer
MIT License
Bot releases are hidden (Show)
The main botmation v3 package has been repackaged and released as @botmation/core v1.0 with one major change, it supports the latest Puppeteer v7.1.x.
This is part of a major refactor of the Botmation repo with Nx. This refactor reduces code requirements by simplifing the process of building and publishing (core & auxiliary) packages.
Two new auxiliary packages, @botmation/instagram and @botmation/linkedin, have been built and published on npm. They work with Core's functions to provide unique functions specific to those sites.
In conclusion, the main botmation
package v3 is replaced with @botmation/core
. Please update your project's Puppeteer
to the latest version 7, remove @types/puppeteer
from your project (Puppeteer comes with its own TS types as of v6) and replace the botmation
package with @botmation/core
.
If you have any troubles upgrading, file an Issue or reach out on Discord: Glitchseekers.
Published by mrWh1te about 4 years ago
Working with latest Puppeteer version 5.
Published by mrWh1te about 4 years ago
This release includes a slight refactor to all BotAction's that assemble other BotAction's due to the newly added support for an Aborting signal #36 #66
Also, this includes another new type of BotAction called Scrapers for scraping the web page. It uses an agnostic HTML parser and therefore can be overridden with any HTML parsing function. The scrapers work by copying the outerHTML
property from the HTML node element that matches the given selector.
Yet, the best is saved for last, this release includes new BotAction's Switch Pipe, Pipe Case and Pipe Cases for more elaborate branching logic. It's possible to incorporate Abort with the three above to create a functional code block similar to the switch, case and break code block.
All this to support a new LinkedIn Feed BotAction likeUserPostsFrom() that scrapes the feed, while causing it too lazily load unfinished feed posts, to click the "Like" button of posts published by certain people from a names list.
Looking forward to supporting other Sites, while Botmation moves towards publishing separate npm packages for each site specific domain.
Published by mrWh1te about 4 years ago
New Docs Site has been published!
It's up to par and more from what was existing in the original README.md docs. It will be expanded upon with Tutorial, and examples of each BotAction, etc
No source code changes. This is simply a docs update.
Published by mrWh1te about 4 years ago
Simplifies BotAction
's parameters, standardizes the injects
system, adds an ability to Pipe, replaces Factories
with Assembly Lines
and increased test coverage to 100% 🥳
--> Sync functions composing async functionality <--
Included:
BotAction
's
Install:
$ npm install [email protected]
Published by mrWh1te over 4 years ago
Published by mrWh1te over 4 years ago