Thank you SO MUCH for developing this package. I had almost lost hope that I'd manage to develop my pet script when I found this gem
I discovered this repo about 30 minutes ago, so apologies if I'm missing something obvious
Summary
I'm trying to retrieve all my bookmarks, but I'm getting the following error:
UnboundLocalError: cannot access local variable 'workid' where it is not associated with a value
I suspect this is due to some of my bookmarked works only being available to registered users. HOWEVER, I am passing a session when creating a user, so I'd assume it should be able to use this session to also retrieve the bookmarks.
I suspect this is due to a lack of session because (apart from knowing I've bookmarked some registered-only works) this is the exact same error I get when trying to run the following code on a registered-only work
workid = AO3.utils.workid_from_url(url)
work = AO3.Work(workid)
I see the get_bookmarks() method does not accept a session argument and neither do _load_bookmarks() and get_work_from_banner()
You may or may not see a pull request from me solving this exact issue. No promises, but I'm tempted
A short prelude to say:
Summary
I'm trying to retrieve all my bookmarks, but I'm getting the following error:
I suspect this is due to some of my bookmarked works only being available to registered users. HOWEVER, I am passing a session when creating a user, so I'd assume it should be able to use this session to also retrieve the bookmarks.
Code
Additional Information
get_bookmarks()
method does not accept asession
argument and neither do_load_bookmarks()
andget_work_from_banner()