KAP Integration¶
Download disclosure PDFs from the Turkish Public Disclosure Platform (Kamu Aydinlatma Platformu).
Download by Date Range¶
from financelib import KAP
kap = KAP()
files = kap.download_pdfs_via_date_ranges(
date_from="2026-01-01",
date_to="2026-01-21",
desired_path="pdfs",
)
print(f"Downloaded {len(files)} PDFs")
Download by Disclosure Number¶
Custom Download Delay¶
# Use a longer delay to be extra polite to the KAP server
kap = KAP(download_delay=30) # 30 seconds between downloads
Warning
The KAP API has rate limits. The default 15-second delay between downloads helps avoid being blocked. Do not reduce this value significantly.