Question: Scrape 2 5 transactions from history using Selenium and store them in csv file using Python. Header row for csv: Date, Time, Label ( Casino

Scrape 25 transactions from history using Selenium and store them in csv file using Python. Header row for csv: Date, Time, Label (Casino), Game_Name, Win_Amount (+0.40 or -0.20), Initial_Balance, Final_Balance. Thanks!
I attached screenshots for the website and inspected elements.
I just need a function for def storeTransactions(transactions).
The function to get transactions:
def getTransactions(driver):
getToTransactions(driver)
transactions = WebDriverWait(driver,10).until(EC.presence_of_all_elements_located((By.CLASS_NAME, 'transaction')))
storedTransactions = storeTransactions(transactions)
return storedTransactions
Scrape 2 5 transactions from history using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!