Объясните, почему выводит только последнюю строчку ?
Если в конце прописать, print(i.text.strip()), то выведет все.
Но мне нужно, в переменную.
import requests
from bs4 import BeautifulSoup
data = requests.get("
https://nb-bet.com/")
soup = BeautifulSoup(data.content, "lxml")
match = soup.findAll("div", class_='rows-border-bottom')
for i in match:
matches = (i.text.strip())
print(matches)