🚀 TeeOne Scraper Helper

📋 Step 1: Open the Website

Go to: https://competiciones.teeone.golf/#/torneos/

🔐 Step 2: Login

Use these credentials:

🏌️ Step 3: Navigate to Mens Competition

Find and click on "Mens Competition" event, then go to "Inscripciones"

📊 Step 4: Extract Data

Open browser console (F12) and run this code:

// TeeOne Participant Data Extractor (function() { console.log('🚀 Starting TeeOne Participant Data Extraction...'); function extractParticipants() { const rows = document.querySelectorAll('table tr'); const participants = []; rows.forEach((row, index) => { if (index === 0) return; // Skip header const cells = row.querySelectorAll('td'); if (cells.length > 0) { const participant = { number: cells[0]?.textContent?.trim() || '', license: cells[1]?.textContent?.trim() || '', player: cells[2]?.textContent?.trim() || '', gender: cells[3]?.textContent?.trim() || '', level: cells[4]?.textContent?.trim() || '', handicap: cells[5]?.textContent?.trim() || '', tees: cells[6]?.textContent?.trim() || '', observations: cells[cells.length - 1]?.textContent?.trim() || '' }; participants.push(participant); } }); return participants; } function exportToCSV(participants) { const headers = ['Number', 'License', 'Player', 'Gender', 'Level', 'Handicap', 'Tees', 'Observations']; const csvContent = [ headers.join(','), ...participants.map(p => [ p.number, p.license, `"${p.player}"`, p.gender, p.level, p.handicap, p.tees, `"${p.observations}"` ].join(',')) ].join('\n'); const blob = new Blob([csvContent], { type: 'text/csv' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'mens_competition_participants.csv'; a.click(); console.log('📄 CSV file downloaded!'); } function exportToExcel(participants) { const headers = ['Number', 'License', 'Player', 'Gender', 'Level', 'Handicap', 'Tees', 'Observations']; let excelContent = ''; // Headers excelContent += ''; headers.forEach(header => { excelContent += ``; }); excelContent += ''; // Data rows participants.forEach(participant => { excelContent += ''; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ``; excelContent += ''; }); excelContent += '
${header}
${participant.number}${participant.license}${participant.player}${participant.gender}${participant.level}${participant.handicap}${participant.tees}${participant.observations}
'; const blob = new Blob([excelContent], { type: 'application/vnd.ms-excel' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'mens_competition_participants.xlsx'; a.click(); console.log('📄 Excel file downloaded!'); } try { const participants = extractParticipants(); if (participants.length > 0) { console.log(`✅ Extracted ${participants.length} participants`); // Export both CSV and Excel exportToCSV(participants); exportToExcel(participants); // Copy data to clipboard navigator.clipboard.writeText(JSON.stringify(participants, null, 2)); console.log('📋 Data copied to clipboard for further processing'); console.log('✅ Data extraction completed!'); console.log('📁 Files downloaded:'); console.log(' 📄 mens_competition_participants.csv'); console.log(' 📄 mens_competition_participants.xlsx'); } else { console.log('⚠️ No participants found. Make sure you are on the Inscripciones page.'); } } catch (error) { console.error('❌ Error during extraction:', error); } })();

✅ Step 5: You're Done!

The script will automatically download both CSV and Excel files with all participant data.

💡 Alternative: Use the Website's Export

If the above doesn't work, you can also:

  1. Look for an "Export" or "Download" button on the page
  2. Use the website's built-in export functionality
  3. Save the file manually