<reponame>Sarahkel/dataRepresentation
#Lab 3, GMIT, <NAME>

import requests
import csv
from bs4 import  BeautifulSoup
with open("../cars.html") as fp:
    soup = BeautifulSoup(fp, 'html.parser')

employee_file = open('week02data.csv', mode = 'w')
employee_writer = csv.writer(employee_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)

rows = soup.findAll("tr")
for row in rows: 
    cols = row.findAll("td")
    dataList = []
    for col in cols: 
        if (col.text == "update") or (col.text == "delete"):
            continue
        else: 
            dataList.append(col.text)
    employee_writer.writerow(dataList)

employee_file.close()


#Lab 3, GMIT, <NAME>

import requests
import csv
from bs4 import  BeautifulSoup
with open("../cars.html") as fp:
    soup = BeautifulSoup(fp, 'html.parser')

employee_file = open('week02data.csv', mode = 'w')
employee_writer = csv.writer(employee_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)

rows = soup.findAll("tr")
for row in rows: 
    cols = row.findAll("td")
    dataList = []
    for col in cols: 
        if (col.text == "update") or (col.text == "delete"):
            continue
        else: 
            dataList.append(col.text)
    employee_writer.writerow(dataList)

employee_file.close()
#Lab 3, GMIT, <NAME>