I'm building a simple parser with beautifulsoup4. After getting all values I need I'm trying to print them, but getting only one value, not all of them. Website I'm parsing: Click
And here's the code:
import requests
from bs4 import BeautifulSoup as BS
response = requests.get('https://www.dotabuff.com/heroes', headers = {'User-agent': 'your bot 0.1'})
html = BS(response.content, 'html.parser')
a = html.select('div > div' '[class = "name"]')
print(a[0].text)