summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-06-01 21:56:23 +0600
committerunwox <me@unwox.com>2025-06-01 21:56:23 +0600
commit3cf517f0d6165b20e5656b1829b19f951716783e (patch)
treea84042f97ba9325281e40ee0558734d789a4a0dd
parentf2fa9a446384847b1047f075e30e0787d96ffa87 (diff)
fix gorkovchay parser
-rw-r--r--parser/gorkovchay.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/gorkovchay.fnl b/parser/gorkovchay.fnl
index 890fffb..8b6b71c 100644
--- a/parser/gorkovchay.fnl
+++ b/parser/gorkovchay.fnl
@@ -5,7 +5,6 @@
(local parser (require :parser.parser))
(local number (require :lib.number))
(local fetcher (require :fetcher))
-; (local utils (require :lib.utils))
(fn format-url [path page]
(.. "https://gorkovchay.ru/" path "/page-" page))
@@ -16,7 +15,8 @@
;; find a category ID for distinguishing teas from teaware later
(parser.anywhere (* "category_id=" (peg.Cg parser.pegs.number :category-id)))
(parser.anywhere (parser.tag :div {:class "ut2-gl__image"}))
- (parser.anywhere (parser.tag :a {:href (peg.Cg (parser.till "\"") :url)}))
+ (parser.anywhere (parser.tag :a {:href (peg.Cg (parser.till "\"") :url)
+ :class "product_icon_lnk"}))
(+
(* (parser.anywhere (* " src=\"" (peg.Cg (parser.till "\"") :image) "\""))
(parser.anywhere " lazy_load_disabled "))