Skip to content

Commit f69844f

Browse files
committed
Update horoscope.py page scraping to new site format
1 parent 975869c commit f69844f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/horoscope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def horoscope(text, db, bot, nick, notice, notice_doc, reply, message):
8585

8686
soup = BeautifulSoup(request.text)
8787

88-
horoscope_text = soup.find("div", class_="horoscope-content").find("p").text
88+
horoscope_text = soup.find("main", class_="main-horoscope").find("p").text
8989
result = "\x02{}\x02 {}".format(sign, horoscope_text)
9090

9191
if text and not dontsave:

0 commit comments

Comments
 (0)