How imprensa-nacional/inlabs works
INLABS provides free access to recent Diário Oficial da União editions, with Bash and Python scripts automating downloads of daily PDF sections and XML section archives. In each Python script, the entry point posts credentials, then downloads files using the session cookie, reports missing files, and saves successful responses locally. The README also describes browser access and directs users to Dados Abertos for older periods. Bash implementations are listed in the tree but were not sampled, so their internal behavior and connections are omitted.
Main entry points: inlabs-auto-download-pdf.py Python PDF downloader · inlabs-auto-download-xml.py Python XML downloader · inlabs-auto-download-pdf.sh Bash PDF downloader · inlabs-auto-download-xml.sh Bash XML downloader
Components 10
INLABS access
- INLABS service
- Open data collections
- Browser access
Download automation
- Python PDF downloader
public/python/inlabs-auto-download-pdf.py - Python XML downloader
public/python/inlabs-auto-download-xml.py - Bash PDF downloader
public/bash/inlabs-auto-download-pdf.sh - Bash XML downloader
public/bash/inlabs-auto-download-xml.sh - Local PDF files
- Local XML archives
Other components
- User
Connections 13
- User → Browser access: accesses
README.md - Browser access → INLABS service: retrieves editions
README.md - User → Python PDF downloader: runs
README.md - User → Python XML downloader: runs
README.md - Python PDF downloader → INLABS service: posts and downloads
public/python/inlabs-auto-download-pdf.py - Python XML downloader → INLABS service: posts and downloads
public/python/inlabs-auto-download-xml.py - Python PDF downloader → Local PDF files: writes files
public/python/inlabs-auto-download-pdf.py - Python XML downloader → Local XML archives: writes archives
public/python/inlabs-auto-download-xml.py - User → Bash PDF downloader: runs
README.md - User → Bash XML downloader: runs
README.md - Bash PDF downloader → INLABS service
- Bash XML downloader → INLABS service
- User → Open data collections: consults older editions
README.md