I use beautiful soup to parse to get data from website. My code as:
import requests response = requests.get('https://vneconomy.vn/tim-kiem.htm?q=doanh%20thu') htmlcontent = response.content from bs4 import BeautifulSoup results_soup = BeautifulSoup(htmlcontent,'html.parser') #print(results_soup) search_results = results_soup.find('div', class_="story__header") if search_results is not None: for result in search_results: Title.append(result.find("h3")) import pandas as pd df= pd.DataFrame({'Title':Title}) print(df) What I want is to get the title from search result page. Such as: "Apple đạt doanh thu gần 1 tỷ USD/ngày; Doanh thu tài chính đột biến, HNG báo lãi tăng 132%..."
But it returns no data. Could you please advise on this case? Thank you!
