VRT/cmd/vrt/vrt.go : /p[] -> /*[]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user