from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.get("https://rublix.best/")
prev_bet = 0
while True:
all_bets = driver.find_elements_by_xpath("//div[contains(@class, 'history-line')]")
if all_bets:
last_bet = all_bets[0].text
if last_bet != prev_bet:
prev_bet = last_bet
print(f'Last bet: {last_bet}')
sleep(1)