UltimaScraper
UltimaScraper copied to clipboard
KeyError 'author' when scraping specific authors
So far, this has happened when attempting the following authors: youngcharleyy, anacheri, nakedbakers, dkarina:
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/start_ofd.py", line 60, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/start_ofd.py", line 44, in main
api = await main_datascraper.start_datascraper(
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/datascraper/main_datascraper.py", line 93, in start_datascraper
await main_helper.process_names(
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/helpers/main_helper.py", line 939, in process_names
result = await module.start_datascraper(authed, username, site_name)
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/modules/onlyfans.py", line 160, in start_datascraper
await prepare_scraper(authed, site_name, item)
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/modules/onlyfans.py", line 791, in prepare_scraper
master_set = await subscription.get_posts()
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/apis/onlyfans/classes/create_user.py", line 301, in get_posts
final_results = [create_post(x, self) for x in results]
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/apis/onlyfans/classes/create_user.py", line 301, in <listcomp>
final_results = [create_post(x, self) for x in results]
File "/mnt/i/Pr0ns/programs/scrapers/OnlyFans/apis/onlyfans/classes/create_post.py", line 13, in __init__
self.author = create_user.create_user(option["author"])
KeyError: 'author'
how do i fix this it happens to me too with certain models
how do i fix this it happens to me too with certain models
I wrote a PR that you can use as well. Just change the same code in your local repo: https://github.com/DIGITALCRIMINAL/OnlyFans/pull/1736
but how do i do that? im not good at coding
בתאריך יום ב׳, 18 באוק׳ 2021 ב-21:52 מאת Blair Gemmer < @.***>:
how do i fix this it happens to me too with certain models
I wrote a PR that you can use as well. Just change the same code in your local repo.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DIGITALCRIMINAL/OnlyFans/issues/1734#issuecomment-946066357, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3R5ZRIVKJI4WFGDQSRJ73UHRUINANCNFSM5GFDZKMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@spydafx
The latest fixes are now located here until I get my account back. I fixed this error 3 days ago. https://github.com/DIGITALCRIMINALS/OnlyFans