Skip to content

Commit b77b7fe

Browse files
committed
test
1 parent 9816692 commit b77b7fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/cogs/snakes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ async def get_snek(self, name: str = None) -> Dict[str, Any]:
7676
async with self.bot.session.get(url) as resp:
7777
info = await resp.read()
7878
soup = BeautifulSoup(info, 'lxml')
79-
img = soup.find(itemprop='image')
79+
img = self.get_attr(soup, 'img alt', name.title() + ' ')
8080
names = self.get_attr(soup, 'td', 'wsite-multicol-col')
8181
info = {
8282
'name': names.h1.string,
83-
'scientific-name': names.h2.string,
83+
'scientific-name': names.h2.i.string,
8484
'image-url': f"{self.bot.info_url}{img}"
8585
}
8686

0 commit comments

Comments
 (0)