(zodiac_sign: int, day: str)
| 11 | |
| 12 | |
| 13 | def horoscope(zodiac_sign: int, day: str) -> str: |
| 14 | url = ( |
| 15 | "https://www.horoscope.com/us/horoscopes/general/" |
| 16 | f"horoscope-general-daily-{day}.aspx?sign={zodiac_sign}" |
| 17 | ) |
| 18 | soup = BeautifulSoup(httpx.get(url, timeout=10).content, "html.parser") |
| 19 | return soup.find("div", class_="main-horoscope").p.text |
| 20 | |
| 21 | |
| 22 | if __name__ == "__main__": |
no test coverage detected