ArmindoFlores / ao3_api

An unofficial archiveofourown.org (AO3) API for python
MIT License
166 stars 64 forks source link

get_images returning KeyError due to AO3 source #55

Closed enigmalea closed 3 years ago

enigmalea commented 3 years ago

Depending on how authors are adding images and what AO3 is doing with that, I'm running into a few works which return a KeyError because there is a blank img tag with no src defined.

image

(For reference the above code is from here)

Is there a way you can have chapters.get_images exclude blank img tags so other images are still retrievable?

ArmindoFlores commented 3 years ago

Thanks for letting me know of this bug!