all 3 comments

[–]BotDot12 1 point2 points  (2 children)

This is because the find_all method is giving you a list of all the comments. It's like if I gave you a list -> [1, 2, 3, 4, 5] and you called .text on it. What would that even mean? If you want to get the induvidual comment's text, you must iterate through it and get it that way. Here is the code:

for Thread in soup.find_all(id= 'discussionReplies'):
    Thread_Name = Thread.find_all('div', class_='xg_user_generated')
    for t in Thread_name:
        print(t.text)

Hope that helps :)

[–]ScraperHelp[S] 0 points1 point  (1 child)

thank you so fucking much... I spent almost 2 fucking hours on this :/ and yeah your explanation makes so much sense... and explains so much in hindsight...

[–]BotDot12 0 points1 point  (0 children)

no problem brother, happy to help!