This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

wbr
TypeScript icon, indicating that this package has built-in type declarations

0.10.1 • Public • Published

WBR - Web Browser Robot 🤖🔮

Web Browser Robot is a one-stop shop for creating, running, and managing web crawlers and automated web tasks with ease.

NPM Typescript Code style ESLint E2E tests Unit tests MIT License


Web Browser Robot

Forget everything you know about tedious asynchronous programming in Playwright or Puppeteer and focus on what you really want to achieve instead. Using an intuitive if-this-then-that schema, optimized concurrency with zero run conditions, and state-of-art backend technology, creating crawlers and automations has never been easier.

Installation

npm i -S @wbr-project/wbr-interpret

This installs the package into the node_modules folder of your project. The package also includes Typescript typings by default to facilitate its usage.

Now you are all set!

Made for people, tailored to devs

With WBR, even a complete beginner can start scraping and crawling in no time. See the docs and read for yourself how you can create your first scraper/crawler/automation with WBR.

Are you way too senior for this child's play? We've got you covered. WBR allows you to embed your own high-performance code into its syntax, effectively combining the generic easy-to-maintain nature of Smart Workflows and specific niche actions crucial for your use case. From the outside, the programmed user actions are indistinguishable from native WBR's actions.

Example

Creating lightning-fast web automations with WBR is easier than you think - nobody likes to spend 8 hours writing an automation to a 1-hour task. Consider the following snippet:

[{
    where: {
        url: "https://wikipedia.org"
    },
    what: [
        {
            action: "scrape",
        }
    ]
}]

This code snippet is a 100% valid WBR workflow definition. What does it do? It scrapes https://wikipedia.org. Yes, yes, not very impressive, I know.

In that case, take a look at this one:

[{
    where: {
        selectors: [
            "form input[type=text]",
            "form input[type=password]",
        ]
    },
    what: [
        {
            action: "fill",
            args: [
                "form input"
                "login@login.com"
            ]
        },
        {
            action: "fill",
            args: [
                "form input[type=password]"
                "verysecretpassword"
            ]
        },
        {
            action: "keyboard.press",
            args: "Enter"
        }
    ]
}]

What does this one do? On a page (any page) with a login form, this Smart Workflow fills in the login form and hits Enter, effectively logging the user in. This demonstrates many strengths of the Smart Workflow philosophy - they are highly reusable, as generic as possible, and help you automating your use cases while writing less code, only describing what you really want to do.

See more examples and explanations in the docs.

Legal

Made in collaboration with Apify and MFF UK, 2021-2022.

Package Sidebar

Install

npm i wbr

Weekly Downloads

1

Version

0.10.1

License

MIT

Unpacked Size

35.9 kB

Total Files

20

Last publish

Collaborators

  • jindrich.bar