ArmindoFlores / ao3_api

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

Work.authors returns authors who aren't even listed as authors, but are mentioned in the notes #26

Closed JackAshwell11 closed 3 years ago

JackAshwell11 commented 3 years ago

So, the title is probably a bit confusing so let me just explain it. For example, if you have an AO3 fic such as https://archiveofourown.org/works/17297594 and call work.authors with that fic, it will return: [<User [TheCrazyFriend]>, <User [Omnicyde]>, <User [Omnicyde]>]

But if you look on the website, the only author listed is TheCrazyFriend and Omnicyde is listed twice within the notes section.

This can probably be sorted by just adding a bit to where you break down the beautiful soup object.

Hope that makes sense.