Skip to content

A Python script that scrapes Islamic prayer times from IslamicFinder.org for a specified city and displays them on a Polybar panel. It uses requests and Beautiful Soup libraries for HTTP requests and parsing HTML respectively. The script can be run periodically with a scheduler to keep the prayer times up-to-date.

Notifications You must be signed in to change notification settings

amineboucenna/Worldwide-Cities-Prayer-Times

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This script fetches the daily prayer times for a given city from the IslamicFinder website. The user specifies the country and city for which they want to get the prayer times. The script then retrieves the prayer times for the entire country and searches for the specified city. If the city is found, the script prints out the prayer times for the current day.

Requirements

  • Python 3.x
  • requests library
  • Beautiful Soup 4 library

You can install the required libraries by running the following command:

pip install requests
pip install BeautifulSoup

Once you have the necessary libraries installed, you can simply clone the project from GitHub:

git clone https://github.com/amineboucenna/Worldwide-Cities-Prayer-Times.git
cd Worldwide-Cities-Prayer-Times/

Usage

  1. visit IslamicFinder and choose your country and your city
  2. edit the city_prayers_times.py by changing the country and the city
  3. Run the script using the command python city_prayers_times.py.
  4. The script will print out the prayer times for the current day, if the specified country and city are found.

Example

$ python city_prayers_times.py
Algiers | Fajr 04:25 | Sunrise 06:09 | Dhuhr 12:49 | Asr 16:25 | Maghrib 19:02 | Isha 20:15

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Python script that scrapes Islamic prayer times from IslamicFinder.org for a specified city and displays them on a Polybar panel. It uses requests and Beautiful Soup libraries for HTTP requests and parsing HTML respectively. The script can be run periodically with a scheduler to keep the prayer times up-to-date.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages