Skip to content

KeyError: 'source' when trying to scrape #141

@ictos

Description

@ictos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions