UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

KeyError: 'medias'

Open Kurosaki22 opened this issue 5 years ago • 55 comments

Hi there, Im receiving the following error since the latest commit

Type: Profile 0.00B [00:00, ?B/s] Type: Stories Scraping [photo]. Should take less than a minute. Scraping [photo]. Should take less than a minute. Traceback (most recent call last): File "G:\Photo_OF_Scraper\OnlyFans\start_ofd.py", line 43, in apis = main_datascraper.start_datascraper(json_config, site_name_lower) File "G:\Photo_OF_Scraper\OnlyFans\datascraper\main_datascraper.py", line 98, in start_datascraper names = main_helper.process_names( File "G:\Photo_OF_Scraper\OnlyFans\helpers\main_helper.py", line 625, in process_names result = module.start_datascraper( File "G:\Photo_OF_Scraper\OnlyFans\modules\onlyfans.py", line 147, in start_datascraper results = prepare_scraper( File "G:\Photo_OF_Scraper\OnlyFans\modules\onlyfans.py", line 704, in prepare_scraper unrefined_set = pool.starmap(media_scraper, product( File "C:\Users\oehy2\AppData\Local\Programs\Python\Python39-32\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\oehy2\AppData\Local\Programs\Python\Python39-32\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\oehy2\AppData\Local\Programs\Python\Python39-32\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\oehy2\AppData\Local\Programs\Python\Python39-32\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "G:\Photo_OF_Scraper\OnlyFans\modules\onlyfans.py", line 1069, in media_scraper found_medias = [x for x in post["medias"] KeyError: 'medias'

Kurosaki22 avatar Feb 15 '21 15:02 Kurosaki22

I get an identical error

olivechicago avatar Feb 15 '21 17:02 olivechicago

Model username?

UltimaHoarder avatar Feb 15 '21 17:02 UltimaHoarder

vickyaisha

Kurosaki22 avatar Feb 15 '21 18:02 Kurosaki22

also getting this error

headphonia avatar Feb 15 '21 19:02 headphonia

I as well on model lushberry.

Nostang3 avatar Feb 15 '21 20:02 Nostang3

I am too after moving to 6.4.

bobsage123 avatar Feb 16 '21 00:02 bobsage123

Try latest commit

UltimaHoarder avatar Feb 16 '21 03:02 UltimaHoarder

Try latest commit

Got stopped on user zoeyssweettea in new commit.

Scrape Processing
Name: zoeyssweettea
Type: Profile
0.00B [00:00, ?B/s]
Type: Stories
No Stories Found.
Type: Posts
Scrape Attempt: 1/100
Found: Posts
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Traceback (most recent call last):
  File "I:\OnlyFans-6.4-temp\start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "I:\OnlyFans-6.4-temp\datascraper\main_datascraper.py", line 98, in start_datascraper
    names = main_helper.process_names(
  File "I:\OnlyFans-6.4-temp\helpers\main_helper.py", line 625, in process_names
    result = module.start_datascraper(
  File "I:\OnlyFans-6.4-temp\modules\onlyfans.py", line 147, in start_datascraper
    results = prepare_scraper(
  File "I:\OnlyFans-6.4-temp\modules\onlyfans.py", line 704, in prepare_scraper
    unrefined_set = pool.starmap(media_scraper, product(
  File "C:\Users\user\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\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "I:\OnlyFans-6.4-temp\modules\onlyfans.py", line 1071, in media_scraper
    found_medias = [x for x in post["medias"]
KeyError: 'medias'

bobsage123 avatar Feb 16 '21 03:02 bobsage123

Getting also the same error

Kurosaki22 avatar Feb 16 '21 07:02 Kurosaki22

Can reproduce

Scraping - stefanisomers | 5 / 432
Scraping [photo]. Should take less than a minute.
Scraping [video | stream | gif]. Should take less than a minute.
Traceback (most recent call last):
  File "O:\OnlyFans-master\start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "O:\OnlyFans-master\datascraper\main_datascraper.py", line 95, in start_datascraper
    paid_content = module.paid_content_scraper(apis, identifiers)
  File "O:\OnlyFans-master\modules\onlyfans.py", line 353, in paid_content_scraper
    unrefined_set = media_scraper(paid_content, api, subscription,
  File "O:\OnlyFans-master\modules\onlyfans.py", line 1071, in media_scraper
    found_medias = [x for x in post["medias"]
KeyError: 'medias'

Gamma-Velorum avatar Feb 16 '21 08:02 Gamma-Velorum

Getting same error on a few accounts.

rileyreidx3, zoeyssweettea, kimmygrangerxxx, evelinstone, kementari

I think all of them worked before the 6.4.1 commit

Jakeyy22 avatar Feb 16 '21 11:02 Jakeyy22

Updated to 6.4.1 and the error still happens on the same model.

Nostang3 avatar Feb 16 '21 12:02 Nostang3

I'm getting the same issue also

Scraping [photo]. Should take less than a minute. Traceback (most recent call last): File "OnlyFans-master 3/start_ofd.py", line 43, in apis = main_datascraper.start_datascraper(json_config, site_name_lower) File "OnlyFans-master 3/datascraper/main_datascraper.py", line 98, in start_datascraper names = main_helper.process_names( File "OnlyFans-master 3/helpers/main_helper.py", line 625, in process_names result = module.start_datascraper( File "OnlyFans-master 3/modules/onlyfans.py", line 147, in start_datascraper results = prepare_scraper( File "OnlyFans-master 3/modules/onlyfans.py", line 699, in prepare_scraper unrefined_result = pool.starmap(media_scraper, product( File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 771, in get raise self._value File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "OnlyFans-master 3/modules/onlyfans.py", line 1076, in media_scraper new_media["linked"] = post["api_type"] KeyError: 'api_type'

londontrapstar avatar Feb 16 '21 12:02 londontrapstar

It's something to do with Archived Posts and Legacy metadata.

UltimaHoarder avatar Feb 16 '21 21:02 UltimaHoarder

You can try the latest commit

UltimaHoarder avatar Feb 16 '21 23:02 UltimaHoarder

You can try the latest commit

Got err on same user as last time.

Scrape Processing
Name: zoeyssweettea
Type: Profile
0.00B [00:00, ?B/s]
Type: Stories
No Stories Found.
Type: Posts
Scrape Attempt: 1/100
Missing 400 Posts... Retrying...
Scrape Attempt: 2/100
Missing 400 Posts... Retrying...
Scrape Attempt: 3/100
Found: Posts
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Traceback (most recent call last):
  File "I:\OnlyFans-6.4-temp2\start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "I:\OnlyFans-6.4-temp2\datascraper\main_datascraper.py", line 98, in start_datascraper
    names = main_helper.process_names(
  File "I:\OnlyFans-6.4-temp2\helpers\main_helper.py", line 625, in process_names
    result = module.start_datascraper(
  File "I:\OnlyFans-6.4-temp2\modules\onlyfans.py", line 147, in start_datascraper
    results = prepare_scraper(
  File "I:\OnlyFans-6.4-temp2\modules\onlyfans.py", line 705, in prepare_scraper
    unrefined_set = pool.starmap(media_scraper, product(
  File "C:\Users\user\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\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "I:\OnlyFans-6.4-temp2\modules\onlyfans.py", line 1072, in media_scraper
    found_medias = [x for x in post["medias"]
KeyError: 'medias'

bobsage123 avatar Feb 17 '21 00:02 bobsage123

Got the same error.

Note: I'm not sure if OF website is lagging or if it's something with my computer(pretty well spec'd) but it took like an hour to reach the point where it errorred out. I only have 21 subs.

Nostang3 avatar Feb 17 '21 01:02 Nostang3

Got the same error.

Note: I'm not sure if OF website is lagging or if it's something with my computer(pretty well spec'd) but it took like an hour to reach the point where it errorred out. I only have 21 subs.

It took me much longer to error out as well this time. But it still errored on the same girl.

bobsage123 avatar Feb 17 '21 01:02 bobsage123

I too was getting

Scrape Attempt: 1/100
Missing 400 Posts... Retrying...
Scrape Attempt: 2/100
Missing 400 Posts... Retrying...
Scrape Attempt: 3/100

I was about to push a commit to fix it, but it went away.

UltimaHoarder avatar Feb 17 '21 01:02 UltimaHoarder

Still with the latest commit:

Scraping - thenatalinamarie | 9 / 431
Scraping [photo]. Should take less than a minute.
Scraping [video | stream | gif]. Should take less than a minute.
Traceback (most recent call last):
  File "O:\OnlyFans-master\start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "O:\OnlyFans-master\datascraper\main_datascraper.py", line 95, in start_datascraper
    paid_content = module.paid_content_scraper(apis, identifiers)
  File "O:\OnlyFans-master\modules\onlyfans.py", line 353, in paid_content_scraper
    unrefined_set = media_scraper(paid_content, api, subscription,
  File "O:\OnlyFans-master\modules\onlyfans.py", line 1072, in media_scraper
    found_medias = [x for x in post["medias"]
KeyError: 'medias'

Gamma-Velorum avatar Feb 17 '21 07:02 Gamma-Velorum