# wa.me Extractor — setup

## Requirements

Python 3.10+ (uses `match` syntax / union types in hints)

### Install dependencies

```bash
pip install beautifulsoup4
```

`tkinter` ships with most Python installations on Linux.
If it's missing:
```bash
# Debian/Ubuntu
sudo apt install python3-tk

# Arch
sudo pacman -S tk

# Fedora
sudo dnf install python3-tkinter
```

---

## Run

```bash
python wa_extractor.py
```

---

## Workflow

1. In WhatsApp Web, open the pending requests panel.
2. Right-click the outer div containing all requests → **Inspect**.
3. In DevTools, right-click the `<div>` element → **Copy** → **Outer HTML**.
4. Paste into a `.txt` file (or directly into the left pane of the app).
5. Hit **⚡ extract**.
6. Adjust batch size if needed (default 20 — good for spam-safe manual invites).
7. **Save .txt** or **Copy all** to share with your community admins.

---

## Output format

```
https://wa.me/+27821234567
https://wa.me/+27831234567
...  (20 links)

────────────────────────────────────────
https://wa.me/+27841234567
...
```

Each block = one admin's batch for the day.
