回复 楼主 影夜black
他每次是返回一个符合要求的。如果需要所有的。需要用find_all程序代码:
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)
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)