Download HWP/HWPX/ODT documents from Korean MSIT (Ministry of Science and ICT) press releases.
The MSIT website publishes government notices with file attachments in HWP 5.0, HWPX, and ODT formats simultaneously, making them useful for testing document format import filters.
Note: This is slop-coded for quick bulk downloading. Don't expect clean code.
pip install msit-dl
msit-dl
Downloads documents from recent press releases. Files are saved as
msit-{articleId}.{hwp,hwpx,odt} in the output directory.
msit-dl [--pages N] [--outdir DIR] [--delay SECONDS]
| Option | Default | Description |
|---|---|---|
--pages |
3 | Number of listing pages to scan |
--outdir |
msit-docs | Output directory |
--delay |
1.0 | Delay between requests in seconds |
Already-downloaded files are skipped automatically. Re-run the same command to download only new files.
curlmust be installed (used for HTTP requests to bypass bot protection)
- Scrapes the MSIT press release listing pages for article IDs
- Fetches each article page to find file attachment metadata
- Downloads HWP, HWPX, and ODT attachments via POST requests
- Skips files that already exist in the output directory