v2.37.18

spider-rs/spiderv2.37.18May 7, 2025by j-mendez

AI Summary

The page streaming rewriter now handles built-in metadata extraction by default, accessible via `page.metadata` or `page.get_metadata()`. Additionally, this release fixes concurrent context creation in Chrome and bumps the CDP revision.

Key Highlights

  • Metadata extraction for page titles, descriptions, and images
  • Fix for concurrent context creation in Chrome
  • CDP revision bump to 1457408

New Features

  • Metadata struct with title, description, and image fields
  • Concurrent context creation fix

Full Release Notes

# Whats Changed

The page streaming rewriter now handles built in metadata extracting by default. You can access it by using `page.metadata` or `page.get_metadata()`.

Some of the metadata properties are set as placeholders unused.

* feat(page): add metadata extracting
* chore(chrome): fix concurrent context creation
* chore(chrome): bump cdp revision 1457408

```rust
/// Page-level metadata extracted from HTML.
pub struct Metadata {
   /// The meta title
    pub title: Option<compact_str::CompactString>,
   /// The meta description
    pub description: Option<compact_str::CompactString>,
    /// The og:image
    pub image: Option<Box<compact_str::CompactString>>,
}
```
**Full Changelog**: https://github.com/spider-rs/spider/compare/v2.36.123...v2.37.18