UltimaHoarder / UltimaScraper

Scrape all the media from an OnlyFans account - Updated regularly
GNU General Public License v3.0
4.01k stars 608 forks source link

TypeError: string indices must be integers #1918

Closed sati-space closed 1 year ago

sati-space commented 2 years ago

I've been getting that error for some weeks now, without a way to fix it. Any solution for this? This is the complete error:

  File "/Library/Frameworks/Python.framework/Versions/3.9/bin/onlyfans-scraper", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 328, in main
    process_prompts()
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 269, in process_prompts
    loop()
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 214, in process_prompts
    do_download_content(headers, username, model_id)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 138, in do_download_content
    combined_urls = process_areas(headers, username, model_id)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 102, in process_areas
    combined_urls = process_areas_all(headers, username, model_id)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 89, in process_areas_all
    highlights_urls = process_highlights(headers, model_id)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/revolution/revolution.py", line 45, in wrapper
    result = func(*margs, **mkwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/scraper.py", line 38, in process_highlights
    highlights_ids = highlights.parse_highlights(highlights_)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/api/highlights.py", line 42, in parse_highlights
    highlight_ids = [highlight['id'] for highlight in highlights]
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onlyfans_scraper/api/highlights.py", line 42, in <listcomp>
    highlight_ids = [highlight['id'] for highlight in highlights]
TypeError: string indices must be integers