This Python script retrieves and displays the daily prayer times for a given city in Iran in English. It does so by scraping the website tala.ir using the requests
and beautifulsoup4
libraries.
- Clone this repository to your local machine.
- Install the required packages by running
pip install -r requirements.txt
in your command prompt or terminal.
- Run the script by typing
python prayer_times.py
in your command prompt or terminal. - When prompted, enter the name of the city in Iran for which you want to see the prayer times. The city name should be entered in Persian letters.
- The script will retrieve the prayer times from tala.ir and display them in English in a tabular format.
Enter the name of your city in Persian: تهران
Prayer | Time |
---|---|
Morning Azan | 05:10 |
Sunrise | 06:33 |
Noon Azan | 13:02 |
Sunset | 19:11 |
Maghrib Azan | 19:31 |
Islamic midnight | 23:04 |
Note: This script may not provide accurate or up-to-date information about prayer times in Iran. Please verify the information provided with a reliable source before making any religious observances.
This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.