muninn
GitHubExtensionWope
  • Introduction
  • Config
    • Basic
    • Selector
    • Array
    • Attribute
    • Type
    • Regex
    • Transform
    • Array Transform
    • Exist
    • Schema
    • Trim
    • Initial
    • Fill
    • HTML
    • Methods
Powered by GitBook
On this page

Was this helpful?

  1. Config

Schema

Muninn lets you create nested schemas. In this way, you can group the data you want or convert your parsing output to the format you want.

HTML
<div class="parent">
  <a href="/about">About</div>
</div>
Config
{
    "link": {
        "schema": {
            "title": "a",
            "url": "a @ href",
        }
    }
}
Output
{
    "link": {
        "title": "About",
        "url": "/about"
    }
}
PreviousExistNextTrim

Last updated 3 years ago

Was this helpful?