I'm trying to extract the titles from a URL but it doesn't have a class. The following code is taken from the page source.
<a href="/f/oDhilr3O">Unatama Don</a>
The title actually does have a class but you can see that I have use index 3 as the first 3 titles aren't what I want. However, I don't want to use hard coding. But in the website the title is also a link, hence, the link above.
title_name=soup.find_all('div',class_='food-description-title')
title_list=[]
for i in range (3,len(title_name)):
title=title_name[i].text
title_list.append(title)
"Unatama Don"
is the title I'm trying to get.