 Iterate through rows
        rows.forEach(row => {
            const rowData = [];

            // Iterate through cells
            row.querySelectorAll('th, td').forEach(cell => {
                // Check if the cell contains an image
                const img = cell.querySelector('img');
                if (img) {
                    // Use the alt text if an image exists
                    rowData.push(img.alt.trim());
                } else {
                    // Otherwise, use the text content of 