div_list=soup.find_all('div',class_='hd') for each in div_list: movie=each.a.find_all('span') for movie_son in movie: print(movie_son.text)