ArmindoFlores / ao3_api

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

Username capitalization #90

Closed encars28 closed 1 year ago

encars28 commented 1 year ago

fix #79

The problem was that when the capitalization wasn't correct the html tags which had the information about the number of bookmarks changed. When the username was written correctly the tag would be span and when in wasn't it would be a. So instead of obtaining the information from the navigation panel I changed the code and now it takes that information from the heading of the page: 1 - 20 of 587 Bookmarks by ...

I also changed the code for user.bookmarks and user.works, because they caused the same error if the capitalization was wrong