mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Enable ruff S113 rule (#11375)
* Enable ruff S113 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -7,7 +7,7 @@ def horoscope(zodiac_sign: int, day: str) -> str:
|
||||
"https://www.horoscope.com/us/horoscopes/general/"
|
||||
f"horoscope-general-daily-{day}.aspx?sign={zodiac_sign}"
|
||||
)
|
||||
soup = BeautifulSoup(requests.get(url).content, "html.parser")
|
||||
soup = BeautifulSoup(requests.get(url, timeout=10).content, "html.parser")
|
||||
return soup.find("div", class_="main-horoscope").p.text
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user