diff options
| author | unwox <me@unwox.com> | 2024-09-27 16:48:20 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-09-27 16:48:20 +0600 |
| commit | 0ea9ddc67a4e771c57189b9bec721dd30df5f315 (patch) | |
| tree | 6739c108d39dd503c9292bd243ab91ad40f55ce0 /parser/ipuer.fnl | |
| parent | 3066524dd9d2e13b4b363d76f3d9bc9394b1b996 (diff) | |
refactor json fetcher a bit
Diffstat (limited to 'parser/ipuer.fnl')
| -rw-r--r-- | parser/ipuer.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |
