# ActionDetails_Str

VALUE:
[?Lookup("Currencies", "Valuta", "Valuta", "Item No")]


VALUE:
import csv
from requests_html import HTMLSession

session = HTMLSession()

url = 'http://www.nationalbanken.dk/valutakurser'
r = session.get(url)

tables = r.html.find('#currenciesTable')

with open(r'[*DOWNLOADS_DIRECTORY]currencies.csv', mode=


VALUE:
'w', newline='') as file:
 file_writer = csv.writer(file, delimiter=';', quotechar='"', quoting=csv.QUOTE_MINIMAL)

 for table_index, table in enumerate(tables):

  rows = table.xpath('//tr')

  for row_index, row in enumerate(rows):

   row_text


VALUE:
= []

   xpath = '//th' if row_index is 0 else '//td'
   columns = row.xpath(xpath)

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

   print(row_text)
   file_wri


# Actions

NOTES:
Open the data from the output CSV file to a Foxtrot list


NOTES:
Create a variable used to store the row number of the row to be deleted


NOTES:
Retrieve the row number using a list lookup


NOTES:
Delete the list row containing the second set of headers


NOTES:
Delete the RowNumber variable after using it


