Add types

This commit is contained in:
2024-11-05 23:22:38 +01:00
parent a0fb036da5
commit fd8395fec1
5 changed files with 31 additions and 23 deletions

View File

@@ -25,25 +25,6 @@ func ParseHTML(html string) ([]string, error) {
return res, nil
}
//doc, err := goquery.NewDocumentFromReader(strings.NewReader(*task.Html))
//if err != nil {
// Error.Printf("failed to parse html: %v", err)
// return
//}
//doc.Find("img").Each(func(i int, s *goquery.Selection) {
// parent := s.Parent()
// if parent.Is("a") {
// href, _ := parent.Attr("href")
// href, ok := fixLink(href)
// if ok {
// hw.output <- &ImageDownloadTask{Url: &href, Topic: task.Topic}
// }
// } else {
// src, _ := s.Attr("src")
// src, ok := fixLink(src)
// if ok {
// hw.output <- &ImageDownloadTask{Url: &src, Topic: task.Topic}
// }
// }
//})
func ParseDoc(html string) ([]string, error) {
return nil, nil
}