UltimaHoarder / UltimaScraper

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

`TypeError: 'Model' object is not subscriptable` when trying to like or unlike all posts #2065

Open raleighlittles opened 10 months ago

raleighlittles commented 10 months ago

Running Python 3.11.6

Full traceback:

Traceback (most recent call last):
  File "/home/raleigh/.local/bin/ofscraper", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/__main__.py", line 10, in main
    start.main()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/start.py", line 85, in main
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/start.py", line 82, in main
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/start.py", line 42, in main
    picker.pick()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/picker.py", line 20, in pick
    scraper.main()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 485, in main
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 467, in main
    scrapper()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 506, in scrapper
    process_prompts()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/utils/exit.py", line 92, in inner
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/utils/exit.py", line 85, in inner
    func(*args, **kwargs)
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 67, in process_prompts
    run(process_like)
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 328, in run
    run_helper(*functs)
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 389, in run_helper
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 375, in run_helper
    job_func()
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/utils/exit.py", line 92, in inner
    raise E
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/utils/exit.py", line 85, in inner
    func(*args, **kwargs)
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 259, in process_like
    active = list(filter(lambda x: x["active"], userdata))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/raleigh/.local/pipx/venvs/ofscraper/lib/python3.11/site-packages/ofscraper/commands/scraper.py", line 259, in <lambda>
    active = list(filter(lambda x: x["active"], userdata))
                                   ~^^^^^^^^^^
TypeError: 'Model' object is not subscriptable