# wapp tp print the statements of course from the givrn url import requests from bs4 import BeautifulSoup url="https://www.politifact.com/factchecks/" response=requests.get(url).text soup=BeautifulSoup(response,"html.parser") print(soup.prettify()) d=[] a=soup.find_all('div',class_="m-statement__quote") for i in a: d.append(i.text.strip()) print(d) d=[] a=soup.find_all('div',class_="m-statement__body") for i in a: d.append(i.text.strip()) print(d)