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:
Maxim Smolskiy
2024-04-21 20:34:18 +03:00
committed by GitHub
parent 7b88e15b1c
commit 2702bf9400
36 changed files with 68 additions and 46 deletions

View File

@ -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