Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.64 KB

README.md

File metadata and controls

47 lines (41 loc) · 1.64 KB

Salah_times

Reminder of salah(prayes) time for linux

Run the script python3 ~/main.py
or run by an alias

  • open the .bashrc gedit ~/.bashrc
  • put this line alias prayer='python3 ~/main.py'
    make sure that the scripts are on the home directory or you need to change the directory in the alias

How to use date_time module

from date_time import SalahTimes

create an instance

mycity = SalahTimes()

to display the salah times for month

month = mycity.month_table()    #get the whole month times
for day in month:
  print (day)

for today

mycity.today_prayer()   #print today times

you can get the url of your city from this website and click on the salah time the URL should look like this if we choose cairo for example https://en.halalguide.me/kair/namaz-time and you can pass it to the constructor like this
mycity = SalahTimes(url=https://en.halalguide.me/kair/namaz-time)

future work and contribution

  • a demon that run in the back ground give notifications
  • GUI version

Automicatic Ubuntu Notifier


Useful links

scraper tutorial
BeautifulSoup
requests
know the date, time of today