> For the complete documentation index, see [llms.txt](https://ae-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ae-docs.keywordrush.com/customparsers.md).

# Custom Parsers

### How to order custom parsers

Affiliate Egg comes with a set list of supported stores. If you need a custom parser for a store not included by default, we can create one for you.

**Cost**: $25 per parser. Each store requires a separate parser, which you can use on any of your websites.

**Process**:

1. **Email Us**: [Send us](https://www.keywordrush.com/contact) your list of stores.
2. **Invoice**: We will review your list and send you an invoice.
3. **Creation**: It may take 1–2 days to create the parsers.

**Installation**:

* Copy the parser files to your server's `/wp-content/affegg-parsers/` directory.
* Custom parsers work exactly like the default parsers.

**Guarantee**: We provide a 6-month guarantee for any custom parsers. If a parser needs corrections during this period, we'll make the necessary adjustments for free.

### For Developers

You can create your own custom parser. Follow these steps:

1. **Skills Required**: Ensure you have PHP and XPath skills.
2. **Parser Location**: Place all custom parsers inside the folder:

   ```
   /wp-content/affegg-parsers/
   ```
3. **Example Parser**: Refer to the example parser in the folder:

   ```
   /wp-content/plugins/affiliate-egg/application/shop/parsers/
   ```
4. **File Naming**: The filename must match the class name inside the parser.
5. **Header Information**: Add the following header to your parser file:

   ```php
   /*
     URI: https://www.adidas.fr
     SEARCH URI: https://www.adidas.fr/search?q=%KEYWORD%
    */
   ```
6. **Required Methods**: Each parser class must implement the following methods:

   ```php
   parseCatalog();
   parseTitle();
   parseDescription();
   parsePrice();
   parseImg();
   parseImgLarge();
   parseOldPrice();
   parseManufacturer();
   parseExtra();
   isInStock();
   ```
7. **Additional Data**: To parse any extra data, use the `parseExtra()` method.


---

# 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:

```
GET https://ae-docs.keywordrush.com/customparsers.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.
