UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Need help with error

Open Nido21100 opened this issue 5 years ago • 6 comments

Hi, just updated to the new version but every time I try to pull from a source it come up with the follower error :=

File "T:\OF\start_ofd.py", line 43, in apis = main_datascraper.start_datascraper(json_config, site_name_lower) File "T:\OF\datascraper\main_datascraper.py", line 98, in start_datascraper names = main_helper.process_names( File "T:\OF\helpers\main_helper.py", line 625, in process_names result = module.start_datascraper( File "T:\OF\modules\onlyfans.py", line 147, in start_datascraper results = prepare_scraper( File "T:\OF\modules\onlyfans.py", line 705, in prepare_scraper unrefined_set = pool.starmap(media_scraper, product( File "C:\Users\Omega Gaming\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\Omega Gaming\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\Omega Gaming\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\Omega Gaming\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "T:\OF\modules\onlyfans.py", line 974, in media_scraper for media in media_api["media"]: KeyError: 'media'

Anyone have any ideas on how to resolve this?

Nido21100 avatar Mar 08 '21 10:03 Nido21100

I had this same issue. I just added a check to skip if the "media" key isn't found and that fixed it. Like this:

if "media" not in media_api:
    continue

put that before the for loop that causes the issue

nappyapp avatar Mar 08 '21 21:03 nappyapp

@DIGITALCRIMINAL any idea why this comes up?

nappyapp avatar Mar 08 '21 21:03 nappyapp

@DIGITALCRIMINAL any idea why this comes up?

They're using an old version

UltimaHoarder avatar Mar 08 '21 21:03 UltimaHoarder

I got this same issue today on the latest version after doing a git pull. I corrected it in my own copy with the suggestion I made to the poster. But it wasn't an old version.

Unless having upgraded to a newer version with old database files is a problem? I've been upgrading for months

On Mon, Mar 8, 2021, 1:45 PM CRIMINAL [email protected] wrote:

@DIGITALCRIMINAL https://github.com/DIGITALCRIMINAL any idea why this comes up?

They're using an old version

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DIGITALCRIMINAL/OnlyFans/issues/908#issuecomment-793102476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4PW6HTHRZH76VCU7A3QZLTCVAOXANCNFSM4YZDQ4RA .

nappyapp avatar Mar 08 '21 21:03 nappyapp

What's the model's username

UltimaHoarder avatar Mar 08 '21 22:03 UltimaHoarder

I don't remember sorry, I just saw the error, made the edit, and it ran fine afterwards

On Mon, Mar 8, 2021, 2:44 PM CRIMINAL [email protected] wrote:

What's the model's username

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DIGITALCRIMINAL/OnlyFans/issues/908#issuecomment-793139414, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS4PW6GZAMASTE6PCQBASUDTCVHMVANCNFSM4YZDQ4RA .

nappyapp avatar Mar 08 '21 22:03 nappyapp