I am trying to web scrape a forum using python which has multiple pages.
Example :https://www.f150forum.com/f118/would-you-buy-f150-again-463954/
How can I go to multiple pages of the website to extract comments from each user? Thank you in advance
url = "https://www.f150forum.com/f118/would-you-buy-f150-again-463954/"
page = requests.get(url, headers=headers)
soup = BeautifulSoup(page.text, 'html.parser')
domains = soup.find_all("div")
posts = soup.find(id = "posts")
comments_class = soup.findAll('div',attrs={"class":"ism-true"})
comments = [row.get_text() for row in comments_class]