From 0ea9ddc67a4e771c57189b9bec721dd30df5f315 Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 27 Sep 2024 16:48:20 +0600 Subject: refactor json fetcher a bit --- parser/ipuer.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser/ipuer.fnl') diff --git a/parser/ipuer.fnl b/parser/ipuer.fnl index 7fefd1b..11e63c0 100644 --- a/parser/ipuer.fnl +++ b/parser/ipuer.fnl @@ -8,7 +8,7 @@ (local parser (require :parser.parser)) (local fetcher (require :fetcher)) -(fn url-formatter [path page] +(fn format-url [path page] (.. "https://ipuer.ru/catalog/" path "/?p=" page)) (local product-peg @@ -63,7 +63,7 @@ {:path "blagovoniya" :category "Благовония"} {:path "posuda" :category "Посуда"} {:path "282" :category "Посуда"}] - url-formatter + format-url product-peg normalize)) -- cgit v1.2.3