Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Rules = map[string]rule.Rule{ "news": { When: "* * * * *", Instant: false, Action: func() []string { var result []string doc, err := rule.Document("https://www.v2ex.com/?tab=nodes") if err != nil { return result } doc.Find(".box .item").Each(func(i int, s *goquery.Selection) { title := s.Find(".item_title a").Text() result = append(result, title) }) return result }, }, "demo": { When: "*/10 * * * *", Instant: false, Action: func() []string { return []string{} }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.