fix: scrape answer comments (#128)
This commit is contained in:
parent
a4d9402a57
commit
215f24cd53
@ -250,6 +250,8 @@ func extractAnswersData(doc *goquery.Document, domain string) ([]types.FilteredA
|
|||||||
processedAnswerBody := utils.ProcessHTMLBody(answerBodyHTML)
|
processedAnswerBody := utils.ProcessHTMLBody(answerBodyHTML)
|
||||||
answer.Body = template.HTML(processedAnswerBody)
|
answer.Body = template.HTML(processedAnswerBody)
|
||||||
|
|
||||||
|
answer.Comments = utils.FindAndReturnComments(answerBodyHTML, domain, postLayout)
|
||||||
|
|
||||||
// Extract author information and timestamp.
|
// Extract author information and timestamp.
|
||||||
extractAnswerAuthorInfo(s, &answer, domain)
|
extractAnswerAuthorInfo(s, &answer, domain)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user