onlyfans-dl-2 icon indicating copy to clipboard operation
onlyfans-dl-2 copied to clipboard

KeyError: 'source' when trying to scrape

Open ictos opened this issue 6 months ago • 12 comments

Was working fine at the weekend but whenever I try to run it tonight I get this-

./onlyfans-dl.py <redacted> max_age = 10
CWD = /home/ictos/onlyfans-dl-2

Getting posts newer than 2024-08-10 17:47:18 UTC

<redacted> exists.
Downloading new media, skipping pre-existing.
Found 5 posts
Traceback (most recent call last):
  File "/home/ictos/onlyfans-dl-2/./onlyfans-dl.py", line 312, in <module>
    get_content("posts", "/users/" + PROFILE_ID + "/posts")
  File "/home/ictos/onlyfans-dl-2/./onlyfans-dl.py", line 255, in get_content
    download_media(media, MEDIATYPE, postdate, album)
  File "/home/ictos/onlyfans-dl-2/./onlyfans-dl.py", line 178, in download_media
    source = media["source"]["source"]
KeyError: 'source'

I've tried updating the session & cookie variables but nothing seems to work.

ictos avatar Aug 20 '24 17:08 ictos