#web-crawler #spider #data-transformation #content #cleaning #chunking

spider_transformations

Transformation utils to use for Spider Web Crawler

273 stable releases

new 2.21.29 Dec 14, 2024
2.21.20 Dec 12, 2024
2.13.84 Nov 30, 2024
2.11.0 Oct 31, 2024
0.0.3 Sep 21, 2024

#1634 in Web programming

Download history 1523/week @ 2024-09-21 1962/week @ 2024-09-28 4113/week @ 2024-10-05 1960/week @ 2024-10-12 4252/week @ 2024-10-19 1755/week @ 2024-10-26 3646/week @ 2024-11-02 1017/week @ 2024-11-09 652/week @ 2024-11-16 7764/week @ 2024-11-23 4314/week @ 2024-11-30 3440/week @ 2024-12-07

16,340 downloads per month
Used in spider_utils

MIT license

205KB
5K SLoC

spider_transformations

The Rust spider cloud transformation library built for performance, AI, and multiple locales. The library is used on Spider Cloud for data cleaning.

Usage

[dependencies]
spider_transformations = "0"
use spider_transformations::transformation::content;

fn main() {
    // page comes from the spider object when streaming.
    let conf = content::TransformConfig::default();
    let content = content::transform_content(&page, &conf, &None, &None);
}

Transfrom types

  1. Markdown
  2. Commonmark
  3. Text
  4. Markdown (Text Map) or HTML2Text
  5. WIP: HTML2XML

Enhancements

  1. Readability
  2. Encoding

Chunking

There are several chunking utils in the transformation mod.

This project has rewrites and forks of html2md, and html2text for performance and bug fixes.

License

MIT

Dependencies

~22–36MB
~635K SLoC