Metadata-Version: 2.4
Name: cwl-dl
Version: 1.0.2
Summary: Automated course material downloader for CyberWarfare Labs
Author-email: 4nuxd <blionrie@gmail.com>
Project-URL: Homepage, https://github.com/4nuxd/cwl-dl
Project-URL: Bug Tracker, https://github.com/4nuxd/cwl-dl/issues
Project-URL: Repository, https://github.com/4nuxd/cwl-dl
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: yt-dlp
Dynamic: license-file

# CWL Downloader 🚀

```text
     ██████╗██╗    ██╗██╗         ██████╗  ██████╗ ██╗    ██╗███╗   ██║
    ██╔════╝██║    ██║██║         ██║  ██║██╔═══██╗██║    ██║████╗  ██║
    ██║     ██║ █╗ ██║██║         ██║  ██║██║   ██║██║ █╗ ██║██╔██╗ ██║
    ██║     ██║███╗██║██║         ██║  ██║██║   ██║██║███╗██║██║╚██╗██║
    ╚██████╗╚███╔███╔╝███████╗    ██████╔╝╚██████╔╝╚███╔███╔╝██║ ╚████║
     ╚═════╝ ╚══╝╚══╝ ╚══════╝    ╚═════╝  ╚═════╝  ╚══╝╚══╝ ╚═╝  ╚═══╝
```

An automated, modern, and minimal course material downloader for **CyberWarfare Labs**.

## ✨ Features

- 🖥️ **Interactive UI**: Beautiful terminal interface with ASCII art and clean status updates.
- 📄 **PDF Downloads**: Automatically extracts and saves course write-ups and study materials.
- 🎬 **Video Support**: Full support for downloading **Vimeo** and **YouTube** videos.
- 🔄 **Deduplication**: Intelligent URL tracking to prevent duplicate downloads.
- 📊 **User Stats**: Displays your profile progress (modules, certs, flags) on login.
- 🛡️ **Bypass Restrictions**: Handles "embed-only" Vimeo videos via custom headers and referrers.
- 📁 **Organized Storage**: Automatically categorizes files by Course and Module.

## 🚀 Getting Started

### 1. Installation

You can install the package directly from PyPI:

```bash
pip install cwl-dl
```

Alternatively, to install from source:

```bash
git clone https://github.com/4nuxd/cwl-dl.git
cd cwl-dl
pip install .
```

### 2. Usage

Once installed, simply run the tool from your terminal:

```bash
cwl-dl
```

3. **Login**:
   The script will prompt for your **JWT Token**.
   - Login to [labs.cyberwarfare.live](https://labs.cyberwarfare.live)
   - Open DevTools (F12) -> Application -> Cookies
   - Copy the value of the `token` field from the `user` cookie string.

## 📁 Output Structure

Downloaded materials are organized as follows:

```text
downloads/
├── course_summary.txt
└── CRTA/
    ├── course_details.txt
    ├── pdfs/
    │   └── CRTA_Walkthrough@piratexdumps.pdf
    └── videos/
        └── Module_1_Initial_Access/
            └── Introduction@piratexdumps.mp4
```

## ⚖️ Legal Disclaimer

This tool is for **personal educational use only**.
- Do not redistribute downloaded content.
- Respect the CyberWarfare Labs Terms of Service.
- The author is not responsible for any misuse of this tool.

---
**Made with ❤️ by [@4nuxd](https://github.com/4nuxd)**
