This commit is contained in:
Eduard Prigoana 2025-08-19 08:15:02 +03:00
parent 650f6fde39
commit f2eec0afd9
3 changed files with 12 additions and 6 deletions

View file

@ -19,8 +19,11 @@ def generate_csv():
if len(cells) < 4:
continue
# Always take the artist name from the column text
artist_name_raw = cells[0].get_text(strip=True)
# Only use the <a> for the URL (if it exists)
link_tag = cells[0].find("a")
artist_name_raw = link_tag.get_text(strip=True) if link_tag else cells[0].get_text(strip=True)
artist_url = link_tag["href"] if link_tag else ""
if not artist_url:
continue