# ActionDetails_Str

VALUE:
from selenium import webdriver
from selenium.webdriver.common.by import By
import csv

browser = webdriver.Chrome(executable_path=r'C:\Selenium\chromedriver.exe')
browser.get('http://www.nationalbanken.dk/valutakurser')

tables = browser.find_eleme


VALUE:
nts_by_id('currenciesTable')

with open(r'[*DOWNLOADS_DIRECTORY]currencies.csv', mode='w', newline='') as file:
    file_writer = csv.writer(file, delimiter=';', quotechar='"', quoting=csv.QUOTE_MINIMAL)

    for table_index, table in enumerate(table


VALUE:
s):
        rows = table.find_elements(By.TAG_NAME, "tr")

        for row_index, row in enumerate(rows):
            row_text = []

            tag_name = 'th' if row_index is 0 else 'td'
            columns = row.find_elements(By.TAG_NAME, tag_na


VALUE:
me)

            for index_column, column in enumerate(columns):
                row_text.append(column.text)
                
                if index_column == 3:
                    break

            file_writer.writerow(row_text)

browser.c


