MParser - Universal content parser for DLE 20
To configure the parser,go to Third-party modules → MParser → Add site
Step 1 — General site settings
Site URL — source domain,for example: film.ru
Category URL — page with a list of materials,for example: https://www.film.ru/a-z/2026
URL for testing fields — specific page of the material to check selectors,for example: https://www.film.ru/serials/svaty-7
GET parameter / pagination template — URL with page parameter,for example: https://www.film.ru/a-z/2026/nojs?page=4 — the number 4 will be replaced with the page number automatically
CSS selector for news link — selector by which the parser finds links to materials in the category,for example: .redesign_afisha_movie_main a [href]
Moderate before publishing — if enabled,materials are first sent for review and are not published immediately
Step 2 — AI settings (optional)
AI provider — select from the list. Mistral — free up to 1 million tokens/month
AI API key — insert the key from the selected provider
Step 3 — Material fields configuration
Each field (Title,Description,Image,etc.) is configured according to the same scheme:[CSS selector] → [Regular expression] → [AI prompt] (the last two are optional)
↓ CSS selector — extracts the desired HTML block
↓ Regular expression — transforms / filters the value
↓ AI prompt — rewrites the text via neural network
↓ Saved to the material field
CSS selector syntax:
.class [text] — text content of the element.class [href] — value of the href attribute.class [src] — value of the src attribute
Regular expression syntax:
Format: ~pattern~flags||replacement
Multiple conditions are separated by &&:
~condition1~flags||replacement1&&~condition2~flags||replacement2
Types of additional fields and file uploads
The parser's behavior when working with media files directly depends on the type of additional field specified in DLE:
text — saves only the URL link. The file is not downloaded,remains on the source serverimage — downloads the image and saves it to your server in the uploads folderimagegallery — downloads all gallery images. Used for posters and screenshotsvideo — downloads the video file to the server. Suitable for trailers with local storagefile — downloads a file of any type and saves it to the server