@devell/web-extractor
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

Web Extractor

This library is made to make AI agents operate on web easier. It scraps the page of given url, and returns an object oriented structure, that includes key elements, such as links, buttons, and text articles.

Usage

Install

yarn add @devell/web-extractor

Use in the code

import { extract } from "@devell/web-extractor";

const view = extract("https://example.com");

// to access links

const links = view.links;

for (const link of links) {
    console.log(`There is a link with text ${link.text}, at coordinates ${link.x}, ${link.y}")
}

Upcoming features

There will be probably interaction of navigation between the pages, more content to extract and anything that will pop up while using this library.

Readme

Keywords

none

Package Sidebar

Install

npm i @devell/web-extractor

Weekly Downloads

2

Version

0.1.12

License

MIT

Unpacked Size

162 kB

Total Files

56

Last publish

Collaborators

  • filipgorny