Closed sati-space closed 1 year ago
Yeah, Onlyfans changed some stuff. In #624 I linked some stuff that'll help, particularly changing line 270 of create_user.py and/or line 283 of user_model.py to results = [create_highlight(x) for x in results.get("list")]
Let me know if you need any more help :)
@GooseWhoIsLoose Thank you for your help. I changed line 270 from create_user.py and 283 from user_model.py to the one you posted above. I also changed the config.json to a comment I saw in #604 and start_ofl.py I saw in #496 but I still have no luck. Still having the same KeyError: 'auth'
error
Hmmm....
Man, I hate programs that don't have GUIs (and good ones, at that). I get how much easier this is from a developer standpoint, but a functional GUI that can direct you where you need to go is so incredibly helpful. Doesn't need to be pretty, just helpful.
Oh well. Still very grateful to have this program, it works better than anything else I've found.
Read through this. I had trouble getting this program working when I first downloaded it, but after following this PDF to the letter (including installing Python direct from the Microsoft Store), I got it to work. I don't remember exactly which errors it fixed, but it's worth a look. This YouTube video was helpful as well.
Good luck! I hope this stuff helps you! :)
@GooseWhoIsLoose Thank you for your help. I changed line 270 from create_user.py and 283 from user_model.py to the one you posted above. I also changed the config.json to a comment I saw in #604 and start_ofl.py I saw in #496 but I still have no luck. Still having the same
KeyError: 'auth'
error
I believe I have solved part of the issue:
In addition to the changes suggested in the comments above, change lines 963-964 in main_helper.py
to say:
json_auth = temp_json_auth.get("auth")
if (json_auth is None) or (json_auth.get("active") is None):
However even after fixing this, I still cant download anything despite being able to log in.
Edit: If this was never an issue for you, you can ignore this:
I managed to fix the issue above by setting false the messages
and paid_content
scrape jobs in config.json
It's not an ideal fix, but at least you can download vids and pics from the main page now.
@GooseWhoIsLoose Thank you for your help. I changed line 270 from create_user.py and 283 from user_model.py to the one you posted above. I also changed the config.json to a comment I saw in #604 and start_ofl.py I saw in #496 but I still have no luck. Still having the same
KeyError: 'auth'
errorI believe I have solved part of the issue: In addition to the changes suggested in the comments above, change lines 963-964 in
main_helper.py
to say:json_auth = temp_json_auth.get("auth")
if (json_auth is None) or (json_auth.get("active") is None):
However even after fixing this, I still cant download anything despite being able to log in. Edit: If this was never an issue for you, you can ignore this: I managed to fix the issue above by setting false the
messages
andpaid_content
scrape jobs inconfig.json
It's not an ideal fix, but at least you can download vids and pics from the main page now.
@Tramp-ish The KeyError: 'auth'
error was indeed fixed like you said. What I can see is that it's only scraping main page, and when I tried selecting only one model, it scraped whatever I had historically from previous subscriptions that were posted on the main page. I did left the 'messages' and 'paid_content' to true to see what was the output, and that was the result. Still not able to access the private areas of the paid_content.
@GooseWhoIsLoose Thank you for your help. I changed line 270 from create_user.py and 283 from user_model.py to the one you posted above. I also changed the config.json to a comment I saw in #604 and start_ofl.py I saw in #496 but I still have no luck. Still having the same
KeyError: 'auth'
errorI believe I have solved part of the issue: In addition to the changes suggested in the comments above, change lines 963-964 in
main_helper.py
to say:json_auth = temp_json_auth.get("auth")
if (json_auth is None) or (json_auth.get("active") is None):
However even after fixing this, I still cant download anything despite being able to log in. Edit: If this was never an issue for you, you can ignore this: I managed to fix the issue above by setting false the
messages
andpaid_content
scrape jobs inconfig.json
It's not an ideal fix, but at least you can download vids and pics from the main page now.
this fixed the issue! I can scrape with no issues. On the latest commit as of 10 Sept 2022 and changing this line. The old code was
if (json_auth is None) or (json_auth.get("active") is None)
is the new line and much more "Python-ic."
Old line was if not json_auth.get("active", None):
which is never seen in Python tutorials lol.
Many thanks for the fix! Great mini puzzle to solve. I enabled messages / private data and it works.
I already filled in the auth.json file but I keep getting the same error to scrape OF data
Anyone found a fix?