Originally I was going to create a dataclass for an object that simply holds data:
@dataclass
class Album():
artists: list
songs: list
release_date: str
popularity_rating: float
However I've realised I need to clean some of these attributes. E.g. the artists data is actually html that I need to parse before assigning to the artists attribute.
Would it better to just create a normal class?
I have a factory function that's creating the Album instances but I think it will be too much work for it to also parse the artists HTML that eventually becomes the artists attribute.
Thanks!