Say you have 10 products that you’d like to recommend, based on some search criteria.
Sure you could create each product page manually, that’d be somewhat fine with only 10 products, but what if you had hundreds, or thousands?
So what we do is store the products in a database.
You’d also have to have one page, a template page, for the products that you want to display.
Essentially that page would have a product title, product image, product description, etc.
From the database, you’d populate this template page with the data associated to the desired product.
For example, if you went to www.mycoolproducts.com/products/organic-shampoo
You’d know exactly which product this relates to in the database, and you’d just retrieve all the data and populate the template page.
The easiest way for you would be to look into Flask or Django, Python frameworks. They’ll take care of most of what you need. You’ll just need to set up your database the way you need it, create a template “recommendation” page, and then figure out how to match the user’s preferences to whatever it is you want to recommend.
Hope this is what you meant and, if yes, that it answers your question?