-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
42 lines (35 loc) · 1.33 KB
/
example.py
File metadata and controls
42 lines (35 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
Daily horoscope by zodiac sign: transit-based forecast with house activations unique per sign.
Returns overview, love, career, health, finance, lucky fields, active transits, moon data, energy rating.
Part of the RoxyAPI Western astrology domain.
"""
import os
from roxy_sdk import create_roxy
roxy = create_roxy(os.environ["ROXY_API_KEY"])
def main():
# Daily horoscope: zodiac sign forecast driven by current planetary transits
horoscope = roxy.astrology.get_daily_horoscope(sign="aries")
print("Sign:", horoscope["sign"])
print("Date:", horoscope["date"])
print()
print("Overview:", horoscope["overview"])
print()
print("Love: ", horoscope["love"])
print("Career: ", horoscope["career"])
print("Health: ", horoscope["health"])
print("Finance:", horoscope["finance"])
print("Advice: ", horoscope["advice"])
print()
print("Lucky number:", horoscope["luckyNumber"])
print("Lucky color: ", horoscope["luckyColor"])
print("Compatible signs:", horoscope["compatibleSigns"])
print()
print("Moon sign: ", horoscope["moonSign"])
print("Moon phase:", horoscope["moonPhase"])
print("Energy rating:", horoscope["energyRating"], "/ 10")
print()
print("Active transits:")
for t in horoscope["activeTransits"]:
print(" -", t)
if __name__ == "__main__":
main()