Skip to content

This application allows you to fetch and display daily prayer times for a specified city and country using web scraping from the Aladhan API.

Notifications You must be signed in to change notification settings

AhemdMahmoud/Prayer_Times_GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Prayer Times Web Scraping Application

This application allows you to fetch and display daily prayer times for a specified city and country using web scraping from the Aladhan API.

prayer_times

Getting Started

To use this application, follow the steps below:

Prerequisites

Make sure you have Python 3.x installed on your system.

Installation

1.Clone or download the repository to your local machine.

2.Install the required Python packages by running the following command in your terminal or command prompt:

Copy code

pip install requests tkinter

Usage

There are two versions of the application:

Web Scraping (Text-Based)

You can use the text-based version by running the prayer_times_text.py script. This version fetches and displays prayer times in the terminal. To run the script, open your terminal and navigate to the project directory, then execute the following command:

Copy code

python prayer_times_text.py

Follow the on-screen instructions to enter the city and country. The prayer times will be displayed in the terminal.

GUI Version

The graphical user interface (GUI) version of the application provides a user-friendly interface for fetching and displaying prayer times. Run the prayer_times_gui.py script as follows:

Copy code

python prayer_times_gui.py

A GUI window will appear with input fields for the city and country. Enter the city and country, and then click the "Fetch Prayer Times" button. The prayer times will be displayed in the GUI window.

Troubleshooting

If you encounter any issues or errors, please ensure that you have an active internet connection and have entered the correct city and country names.

Disclaimer

This application relies on web scraping from a third-party API, which may be subject to change or discontinuation. The application's functionality may be affected if the API structure changes. It is recommended to periodically check for updates or modifications to the code if the API behavior changes.

Please note that this code is provided for educational purposes and should be used responsibly and in compliance with the terms of use of the Aladhan API.

About

This application allows you to fetch and display daily prayer times for a specified city and country using web scraping from the Aladhan API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages