RuntimeWarning: coroutine 'ModelManager.all_subs_retriver' was never awaited self.all_subs_retriver(refetch=False)
With Python 3.11 and ofscraper 3.13.dev5 i receive this error when I use the
ofscraper -a download -ts --after 20250503 -o all -ul PIN
No accounts found during scan
╭───────────────────────────────────────────────── Activity Progress ──────────────────────────────────────────────────╮
│ Getting subscriptions │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
C:\Users\bla\AppData\Local\Programs\Python\Python311\Lib\site-packages\ofscraper\data\models\manager.py:86: RuntimeWarning: coroutine 'ModelManager.all_subs_retriver' was never awaited
self.all_subs_retriver(refetch=False)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
You have filtered the user list to zero
Can you help me plz?
using the windows exe with the same config and auth files all works fine
ofscraper_windows_3.13.dev5.exe -a download -ts --after 20250503 -o all -ul PIN
cambia en config,json aio por httpx
the backent isn't anymore in the config file, if i add under advanced "backent": "httpx", when it start it update the config file automatically removing it (and than coming back to the same error).
Don't use the dev version its not stable. Use 3.12.9 as its the most stable. Also others have had issues with httpx so if you want to use aio you need to use the below fix
@everyone If you have the above issue and switched to httpx but have slow download and want to go back to aio or have the above issue and want to keep using aiouse the below fix.
Make sure you have the latest version aiohttp as of writing, it's 3.11.16
If using pip pip install --upgrade aiohttp
if using pipx pipx inject ofscraper aiohttp==3.11.16 --force
You then need to edit sessionmanager.py for ofscraper. Location of this file may vary based on your Operating System and how you have python/ofscraper installed, but below are some example locations
WindowsC:\Users\cjb900\AppData\Local\Programs\Python\Python311\Lib\site-packages\ofscraper\classes\sessionmanager.py
Ubuntu and possibly other linux distros (using pipx) /home/cjb900/.local/share/pipx/venvs/ofscraper/lib/python3.12/site-packages/ofscraper/classes/sessionmanager/sessionmanager.py
Then change line 484 ssl=ssl.create_default_context(cafile=certifi.where()), to ssl=False, F has to be capitalized here
Then if you edited the advanced option in the config.json file from "backend": "aio", to "backend": "httpx", change it back to aio
After making these changed you may need to close and reopen your terminal/command prompt window or reboot your computer for these changes to take effect.
im using aio and never changed to httpx, and it still wont list any subs. i updated aiohttp like cjb900 said, but the other stuff i didn't have to change because it was already like that. Here's my log.
ahí dice que usando aio te va dar: aiohttp..ClientResponseError: 403 en la api: https://onlyfans.com/api2/v2/subscriptions/subscribes... hasta te imprime la página/html: Attention Required! | Cloudflare This website is using a security service to protect itself from online attacks. por eso te da: Total expired subscriptions found 0
Solo cambia aio por httpx o cambia tu ip lol
Some clients maybe blocked by OF I haven't had the time to investigate further.
If you have issues in the future you can see if there are any mitigations in the discord or switch to 3.13.dev6 which uses a new updated client for downloading