# TeeOne Mens Competition Scraper - Instructions

## 🎯 Objective
Download Excel file with participant data from competiciones.teeone.golf

## 📋 Step-by-Step Instructions

### Step 1: Manual Data Extraction
1. **Open browser** and go to: https://competiciones.teeone.golf/#/torneos/
2. **Login** with your credentials:
   - Email: barry@scala4.com
   - Password: Chromcast123!
3. **Navigate** to "Mens Competition" → "Inscripciones"
4. **Open browser console** (Press F12, go to Console tab)
5. **Copy and paste** the JavaScript code from `extract_participants.js`
6. **Run the code** - it will extract data and copy to clipboard

### Step 2: Save Data for Processing
1. **Create file**: `exports/participants.json`
2. **Paste the clipboard data** into this file
3. **Save the file**

### Step 3: Process Data
1. **Run**: `php test-scrape-mens-simple.php`
2. **Check exports folder** for generated Excel and CSV files

## 🔧 What You'll Get

- **Excel file** (.xlsx) - Opens in Excel with participant data
- **CSV file** (.csv) - Spreadsheet format
- **JSON file** - Raw data for further processing

## 📊 Expected Output

The Excel file will contain:
- Number
- License
- Player Name
- Gender
- Level
- Handicap
- Tees
- Observations

## 🚀 Quick Start

1. Run: `php test-scrape-mens-simple.php`
2. Follow the instructions above
3. Get your Excel file!

## 💡 Tips

- Make sure you're on the Inscripciones page before running the JavaScript
- The JavaScript will automatically download a CSV file
- The PHP script will create an Excel file from the JSON data
- Both files will be saved in the exports/ folder