• Sonia @sabirsonia98 ·

    I am looking for a snippest code to add 3 tables for different prices in my website that is related to buy instagram followers canada.

  • import requests

    def get_sahur_time(city="Riyadh"): url = f"https://prayertimesksa.com/v1/timingsByCity?city={city}&country=SA&method=2" response = requests.get(url)

    if response.status_code == 200:
        timings = response.json().get("data", {}).get("timings", {})
        sahur_time = timings.get("Fajr")  # Fajr time is usually the Sahur time
        return sahur_time
    else:
        return "Error: Unable to retrieve Sahur time"

    Example usage:

    city = "Riyadh" sahur_time = get_sahur_time(city) print(f"Sahur Time in {city}: {sahur_time}")

    Edited by Work Of student
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment