Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def solution(soup):
- arr = soup.find_all('div',attrs={'class': 'similar-artists-item'})
- res = []
- for i in arr:
- res.append(i.find('h3').find('a').text)
- return res[:5]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement