FIx bljesak crawler
This commit is contained in:
@@ -80,7 +80,7 @@ func setupBljesakArticlePageCrawler(crArticlePage *colly.Collector) {
|
|||||||
|
|
||||||
text := ""
|
text := ""
|
||||||
|
|
||||||
e.ForEach("div.col-article-content, div.intro, div.s-main-content", func(_ int, el *colly.HTMLElement) {
|
e.ForEach("article.b-article-detail, div#infiniteLoadBreakpoint, div.col-article-content, div.intro, div.s-main-content", func(_ int, el *colly.HTMLElement) {
|
||||||
text += extractJustText(el.DOM)
|
text += extractJustText(el.DOM)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ func setupSiArticlePageCrawler(crArticlePage *colly.Collector) {
|
|||||||
|
|
||||||
text := ""
|
text := ""
|
||||||
|
|
||||||
e.ForEach("article.b-article-detail div#infiniteLoadBreakpoint, p.article__top-content, p.article__content, h4.article__content, h3.article__content, h2.article__content, div.article__content", func(_ int, el *colly.HTMLElement) {
|
e.ForEach("p.article__top-content, p.article__content, h4.article__content, h3.article__content, h2.article__content, div.article__content", func(_ int, el *colly.HTMLElement) {
|
||||||
text += extractJustText(el.DOM)
|
text += extractJustText(el.DOM)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user