Skip to content

Commit

Permalink
Update scraper.py (SilentDemonSD#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Troll authored Nov 20, 2022
1 parent 28ce20e commit 972d9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/modules/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def scrapper(update, context):
soup = BeautifulSoup (r, "html.parser")
for a in soup.find_all("a"):
c = a.get("href")
if "gdtot" in c:
if c and "gdtot" in c:
t = client.get(c).text
soupt = BeautifulSoup(t, "html.parser")
title = soupt.title
Expand Down

0 comments on commit 972d9fb

Please sign in to comment.