UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

KeyError: 'author'

Open HoneyBadger116 opened this issue 5 years ago • 3 comments

Traceback (most recent call last): File "D:\OF Rip\OnlyFans\start_ofd.py", line 60, in loop.run_until_complete(main()) File "C:\Users\kioro\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "D:\OF Rip\OnlyFans\start_ofd.py", line 44, in main api = await main_datascraper.start_datascraper( File "D:\OF Rip\OnlyFans\datascraper\main_datascraper.py", line 93, in start_datascraper await main_helper.process_names( File "D:\OF Rip\OnlyFans\helpers\main_helper.py", line 939, in process_names result = await module.start_datascraper(authed, username, site_name) File "D:\OF Rip\OnlyFans\modules\onlyfans.py", line 160, in start_datascraper await prepare_scraper(authed, site_name, item) File "D:\OF Rip\OnlyFans\modules\onlyfans.py", line 791, in prepare_scraper master_set = await subscription.get_posts() File "D:\OF Rip\OnlyFans\apis\onlyfans\classes\create_user.py", line 301, in get_posts final_results = [create_post(x, self) for x in results] File "D:\OF Rip\OnlyFans\apis\onlyfans\classes\create_user.py", line 301, in final_results = [create_post(x, self) for x in results] File "D:\OF Rip\OnlyFans\apis\onlyfans\classes\create_post.py", line 13, in init self.author = create_user.create_user(option["author"]) KeyError: 'author'

HoneyBadger116 avatar Aug 05 '21 23:08 HoneyBadger116

I have reran pip install --upgrade --user -r requirements.txt Also wiped everything and started fresh. I'm sure it's something simple I've overlooked.

HoneyBadger116 avatar Aug 05 '21 23:08 HoneyBadger116

Try this workaround: https://github.com/DIGITALCRIMINAL/OnlyFans/issues/1419#issuecomment-893816231

naodrej avatar Aug 05 '21 23:08 naodrej

Thank you @naodrej That fixed the issue. Funny it only seemed to be an issue with some models and not all.

HoneyBadger116 avatar Aug 05 '21 23:08 HoneyBadger116