Is there a way to use Floki to pick one attribute or a second attribute if the first cannot be found? I’m trying to grab an image URL out of HTML. Some images have the URL under the “data-original” attribute, while others have it under the “src” attribute.
Is there a way I can say something similar to “data-original” | “src”?
> [my_img] <- html |> Floki.find("img") |> Floki.attribute("data-original")