html_text = driver.page_source soup = BeautifulSoup(html_text, "html.parser") get_details = soup.find_all(\'li\', attrs={"class":"news"