> For the complete documentation index, see [llms.txt](https://wopehq.gitbook.io/muninn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wopehq.gitbook.io/muninn/master.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
