The UAE Awqaf website's Friday Sermon Archive is down quite often, and there is no programmtic way to interact with it to get the Khutba files. This utility makes it possible to download the files and add them to the Islamic Network CDN (potentially, right now they just sit on OneDrive).
Here's a JSON map of what lives on the CDN.
Just run download.sh
. Ensure that in api.php line 52 has all the years api json files need to be recreated.
This utility requires PHP 8.0+ (at least that's what it has been tested with) and composer.
You can only download khutbas for one month at a time, technically, and the below process documents how to aggregate that. Unforunately a crawler is not easy to write for everything as the month and year use some very unpleasant encoding and HTTP posts. It's possible to automate this, but probably not woth the investment of time. So, for now:
Run composer install
after cloning this repository. Then:
/en/Pages/FridaySermonDetail.aspx?did=[0-9][0-9][0-9][0-9]
in the Regular Expression input field.download-audio.php
and watch the commentary. Then repeat for pdf and word.download.sh
to get everyting, but be patient.Please raise a PR to fix if you can or post on https://community.islamic.network for support.
The license for these scripts is GNU LGPL v3.
Please note that where ever you download, view and/or store these khutbas, the copyright remains with and belongs to the General Authority of Islamic Affairs and Endowments, UAE. The authenticity may be verified using their document verifier at https://www.awqaf.gov.ae/en/Pages/verifydocument.aspx.