nianeyna / ao3downloader

Utility for downloading fanfiction in bulk from the Archive of Our Own
GNU General Public License v3.0
201 stars 18 forks source link

Traceback when getting metadata #130

Closed Doranwen closed 8 months ago

Doranwen commented 8 months ago

I made sure to update to the latest version (which I didn't have to tweak at all, yay! love the settings.ini file) and try that, just in case - but I still got the same error when using the "l" option to grab all the metadata from a link:

Traceback (most recent call last): File "/home/doranwen/Programs/Scripts/ao3downloader/ao3downloader-main/ao3downloader/parse_soup.py", line 257, in get_work_metadata_from_list metadata['title'] = blurb.find('a', href=f'/works/{worknum}').get_text() AttributeError: 'NoneType' object has no attribute 'get_text'

Every cell (except for the top, which says "error") in the first column of the csv has this. The second column does appear to have the links to the stories, but without any associated metadata. Any idea why this is happening or how to fix?

The link I tried was this: https://archiveofourown.org/collections/libraryofmoria/works (Mine had some filters on it, but I tested without the filters grabbing just a few of the pages and I get the same results.)