Ask Janek AI with Janek

All questions

Make.com Web Scraping basics - Part 2 · published 27 June 2025

Play at 7:38 Watch on YouTube Scraping

How do I extract one product description with Match pattern in Make.com?

I turn the page into text first, then match from the word details up to the add-to-cart text.

HTML to text sits between HTTP and Match pattern. I map the HTTP data into HTML to text and run it once, so I can see the product as text and search for details. The pattern starts at details. A capital S matches any character that is not a space: letters, numbers, dots, question marks. A small s matches spaces and line breaks. A star keeps taking those characters, and a question mark makes it stop at the end text instead of running to the end of the page. A slash in the pattern needs a backslash in front or Make errors. The part I want back goes in round brackets. I end the pattern with the add-to-cart text I copy from the page, because that is the last thing on the product. On regex101 the match runs through to notify me.

In Match pattern I paste that pattern. Global match stays off, because I want one product. Case sensitive stays off, so details still matches if the capital is missing. Single line or multi-line does not matter here. If nothing is found, I set the scenario to stop. I usually do that, because there is nothing to post. The text field is the HTML-to-text output, not the raw HTML. The run returns the description. It has extra spaces. The AI does not care.