Сначала найдите все BNeawe vvjwJb AP7Wnd
класс, а затем выполните итерацию по всем результатам.
import requests
from bs4 import BeautifulSoup
source = requests.get("https://www.google.com/search?q=online+education").text
soup = BeautifulSoup(source, 'lxml')
headlines = soup.find_all("div", class_="BNeawe vvjwJb AP7Wnd")
for headline in headlines:
print(headline.text, end=', ')
Вывод:
What is online education | Definition of Online education is ..., Online Education | Encyclopedia.com, 5 Advantages Of Online Learning: Education Without Leaving Home ..., Online Education & Teaching Courses | Harvard University, What is online education? - Lynda.com, What is Online Education? - Online-Education.net, 50 Top Online Learning Sites - Best College Reviews, Benefits of Online Education | Community College of Aurora in ..., 10 Advantages of Taking Online Classes | OEDB.org, Online learning in higher education - Wikipedia,