if last_bet != prev_bet:
prev_bet = last_bet
t = str(a) + ') ' + 'Last game: {0} {1}'.format(last_bet, time_string)
print(t)
a+=1
f = open('games.csv', 'a+')
f.write(t + '\n')
f.close()
time.sleep(1)
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://rublix.best/")
for elem in driver.find_elements_by_xpath('.//div[@class="history-wrapper"]//div'):
print(elem.get_attribute('textContent'))