diff --git a/VRT/cmd/vrt/vrt.go b/VRT/cmd/vrt/vrt.go index c4eef5b..32a1802 100644 --- a/VRT/cmd/vrt/vrt.go +++ b/VRT/cmd/vrt/vrt.go @@ -240,7 +240,7 @@ func doArticle(filename string, url string, title string, tags []string, labels fouten := make([]string, 0) found := false - pp, err := root.Search(`//div[@data-sentry-component="ArticleHeading"]//p[contains(@class,"prose-article-body-r")]`) + pp, err := root.Search(`//div[@data-sentry-component="ArticleHeading"]//*[contains(@class,"prose-article-body-r")]`) x(err) for _, p := range pp { _, err = fmt.Fprint(&buf, addEnd(fixSpace(p.Content()))) @@ -254,7 +254,7 @@ func doArticle(filename string, url string, title string, tags []string, labels found = false pp, err = root.Search( - `//div[@data-sentry-component="ArticleText"]//p[contains(@class,"prose-article-body-r")]` + + `//div[@data-sentry-component="ArticleText"]//*[contains(@class,"prose-article-body-r")]` + ` | ` + `//div[@data-sentry-component="ArticleTitle"]//h2`) x(err)