Fix aggregator being blank on Sundays and BS4 warnings

This commit is contained in:
2023-03-26 13:52:17 -04:00
parent f082bea571
commit c571043788
8 changed files with 58 additions and 70 deletions

View File

@ -28,7 +28,7 @@ def get_bandcamp_slug(artist_name=None, album_name=None) -> str:
logger.info(f"Bad http response from Bandcamp {r}")
return slug
soup = BeautifulSoup(r.text, "html")
soup = BeautifulSoup(r.text, "html.parser")
results = soup.find("ul", class_="result-items")