# Introduction

Muninn is an HTML parsing tool. It is fast. It allows you to create a configuration file. This makes it easy to keep parser settings up to date despite changing selectors. It takes very little time to learn thanks to the easy syntax. It uses the [cheerio](https://github.com/cheeriojs/cheerio) library for parsing. It is simple and flexible for various needs.

It also has a useful extension that visualizes your configuration files on the pages you will parse. See [Muninn Extension](https://github.com/aykutkardas/muninn-extension)

### Motivation

Our aim is to make the parsing processes more manageable and to facilitate the contribution of team members to this process. That's why muninn has an easy to understand config file and syntax. It takes care to remain simple even when solving complex problems.

### Installation

With NPM

```
$ npm install muninn
```

With Yarn

```
$ yarn add muninn
```

### Usage

```javascript
import { parse } from "muninn";

const data = "<html>...</html>";

const config = {
    schema: { 
        title: "h1.title" 
    }
}

parse(data, config);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wopehq.gitbook.io/muninn/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
