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
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)
- a demon that run in the back ground give notifications
- GUI version
scraper tutorial
BeautifulSoup
requests
know the date, time of today