Crashes for some models - KeyError: 'media'
Crashes for some (not all) OF models with the following error:
Type: Profile
0.00B [00:00, ?B/s]
Type: Stories
No Stories Found.
Type: Posts
Scrape Attempt: 1/100
Found: Posts
Scraping [photo]. Should take less than a minute.
Scraping [photo]. Should take less than a minute.
Scraping [video | stream | gif]. Should take less than a minute.
Scraping [audio]. Should take less than a minute.
Scraping [text]. Should take less than a minute.
Traceback (most recent call last):
File "G:\OF2\OnlyFans-master\start_ofd.py", line 43, in
What version are you using
Latest version, freshly downloaded two days ago.
What's the model's name
rhoneeandkhoa paxclusive
EDIT: Figured out what was causing it...but not sure how to fix it. The crash happens whenever there's a post that's been reported. I can get around it by hardcoding the logic to skip a particular Post ID inside the media_scraper function in modules/onlyfans.py.
@DIGITALCRIMINAL - is there a cleaner way to pick up if it's a previously reported post, and skip over it?

Ahh interesting. If you check the API response on the website for that post, you may find a key that's related to report ed posts. Maybe there's a "isReported" bool.
Any pointers for how I would go about finding this info easily? I'm fine on the Python side of things, but the networking side is a bit out of my scope of knowledge...
Edit: Aha! Found it. As part of the response:
"isReportedByMe":true
Now to figure out how to plug that into the main code...
Ahh thank you, I'll be sure to add that to script. I gotta fix the script again...