UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Script will scrape a few models, then get stuck on "medias" and can't find "filename"

Open ghost opened this issue 5 years ago • 8 comments

I am running master

Scraping [photo]. Should take less than a minute.
Scraping [video | stream | gif]. Should take less than a minute.
Traceback (most recent call last):
  File "Z:\github-folders\OnlyFans\start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "Z:\github-folders\OnlyFans\datascraper\main_datascraper.py", line 95, in start_datascraper
    paid_content = module.paid_content_scraper(apis, identifiers)
  File "Z:\github-folders\OnlyFans\modules\onlyfans.py", line 353, in paid_content_scraper
    unrefined_set = media_scraper(paid_content, api, subscription,
  File "Z:\github-folders\OnlyFans\modules\onlyfans.py", line 1075, in media_scraper
    found_medias = [x for x in medias
  File "Z:\github-folders\OnlyFans\modules\onlyfans.py", line 1076, in <listcomp>
    if x["filename"] == new_media["filename"]]
KeyError: 'filename'

ghost avatar Feb 25 '21 00:02 ghost

model name

UltimaHoarder avatar Feb 25 '21 01:02 UltimaHoarder

bronzed_aurora its a free account

ghost avatar Feb 25 '21 01:02 ghost

Try using the branch from #867 it fixed my issue.

badchoices avatar Feb 25 '21 03:02 badchoices

Branch #867 fixed it for me too

lEtranger1942 avatar Feb 28 '21 14:02 lEtranger1942

Still broken in latest commit.

jeff-geoff avatar Feb 28 '21 23:02 jeff-geoff

The https://github.com/DIGITALCRIMINAL/OnlyFans/pull/867 commit works for me too. @DIGITALCRIMINAL will you merge this\apply similar fix?

bobsage123 avatar Mar 02 '21 04:03 bobsage123

I have the same problem. nickname cherielady and lindseypelas

Traceback (most recent call last):
  File "start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "datascraper\main_datascraper.py", line 98, in start_datascraper
    names = main_helper.process_names(
  File "helpers\main_helper.py", line 631, in process_names
    result = module.start_datascraper(
  File "modules\onlyfans.py", line 147, in start_datascraper
    results = prepare_scraper(
  File "modules\onlyfans.py", line 700, in prepare_scraper
    unrefined_result = pool.starmap(media_scraper, product(
  File "Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "Python\Python39\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
  File "Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "\modules\onlyfans.py", line 1075, in media_scraper
    found_medias = [x for x in medias
  File "\modules\onlyfans.py", line 1076, in <listcomp>
    if x["filename"] == new_media["filename"]]
KeyError: 'filename'

I have a question if it is possible to add one command where I do not have to wait for the profile to load. I mean 0-All and a = everything. With 20 observed profiles, it is a pain. I mean that if I enter 0 and a that these profiles will be automatically treated. So every generation profile flies with such settings.

Jar4ek avatar Mar 03 '21 12:03 Jar4ek

I have the same problem. nickname cherielady and lindseypelas

Traceback (most recent call last):
  File "start_ofd.py", line 43, in <module>
    apis = main_datascraper.start_datascraper(json_config, site_name_lower)
  File "datascraper\main_datascraper.py", line 98, in start_datascraper
    names = main_helper.process_names(
  File "helpers\main_helper.py", line 631, in process_names
    result = module.start_datascraper(
  File "modules\onlyfans.py", line 147, in start_datascraper
    results = prepare_scraper(
  File "modules\onlyfans.py", line 700, in prepare_scraper
    unrefined_result = pool.starmap(media_scraper, product(
  File "Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "Python\Python39\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
  File "Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "\modules\onlyfans.py", line 1075, in media_scraper
    found_medias = [x for x in medias
  File "\modules\onlyfans.py", line 1076, in <listcomp>
    if x["filename"] == new_media["filename"]]
KeyError: 'filename'

I have a question if it is possible to add one command where I do not have to wait for the profile to load. I mean 0-All and a = everything. With 20 observed profiles, it is a pain. I mean that if I enter 0 and a that these profiles will be automatically treated. So every generation profile flies with such settings.

You can edit the config and have all of that automated, I believe he has that mentioned on the readme on the main page.

sintaxx avatar Mar 05 '21 04:03 sintaxx