UTS_VLC / scripts /README.md
Vu Anh
Add dataset card and scripts
e7cee37
# VLC Downloader
Vietnamese Legal Corpus Downloader - Downloads laws and codes from thuvienphapluat.vn
## Setup
```bash
cd ~/Downloads/vlc-2026/scripts
uv venv
source .venv/bin/activate
uv pip install -e .
```
## Usage
### Download laws from database to markdown files
```bash
# Basic download (metadata only)
uv run python downloader.py download
# With full content from web
uv run python downloader.py download --fetch-content
# With custom delay and limit
uv run python downloader.py download --fetch-content --delay 2.0 --limit 10
```
### Show statistics
```bash
uv run python downloader.py stats
```
### List downloaded files
```bash
uv run python downloader.py list-files
```
## Output Structure
```
vlc-2026/
├── data/
│ ├── codes/
│ │ └── 2015/
│ │ ├── bo-luat-dan-su.md
│ │ ├── bo-luat-hinh-su.md
│ │ └── ...
│ └── laws/
│ ├── 2022/
│ ├── 2023/
│ ├── 2024/
│ └── 2025/
├── scripts/
│ ├── pyproject.toml
│ ├── downloader.py
│ └── README.md
├── vietnam_laws.sqlite
└── REFERENCES.md
```
## Markdown Front Matter
Each file includes YAML front matter:
```yaml
---
title: Luật Bảo vệ dữ liệu cá nhân
title_en: Personal Data Protection Law
type: law
year: 2025
document_number: 91/2025/QH15
effective_date: 2026-01-01
status: Active
url: https://thuvienphapluat.vn/...
downloaded_at: 2026-01-24T10:30:00
---
```