mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-20 13:59:16 +00:00
fix: scrape answer comments (#128)
This commit is contained in:
parent
a4d9402a57
commit
215f24cd53
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue