UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

rewrites auth.json and invalidates session

Open atrimony opened this issue 3 years ago • 4 comments

I have tried for the 20th time to copy my cookies into .profiles/default/auth.json(which is what the readme says) and .profiles/OnlyFans/default/auth.json (which is what the CLI creates)

When running the CLI, the auth.json is overwritten. Then I see Access denied. fail 10 times. But I know that it is getting the session information correctly because the browser session is now invalid—if I try to click around on the tab where i got the cookies, it now is logged out.

So to reproduce:

  1. Login to onlyfans.com
  2. take Cookie value from init request
  3. paste value in .profiles/OnlyFans/default/auth.json under auth.cookie
  4. run python3 start_ofd.py
  5. choose site
  6. .profiles/OnlyFans/default/auth.json is now rewritten
  7. ten attempts with access denied
  8. Return to browser and refresh onlyfans.com
  9. logged out

Ideas?

atrimony avatar Sep 29 '21 04:09 atrimony

check this cookie helper out - https://github.com/M-rcus/OnlyFans-Cookie-Helper

login to onlyfans, hit the icon for the extension, copy & paste into auth.json.

jimcrapo avatar Oct 01 '21 15:10 jimcrapo

@jimcrapo how does this fix the problem with auth.json being overwritten?

Xirious avatar Oct 02 '21 12:10 Xirious

it doesn't get overwritten; it gets modified by the script to fit the format it is looking for - e.g putting the auth_id, sess, auth_hash, etc into one line "cookie".

I've watched this happen live with auth.json open in notepad++ every time I need to update due to an expired session, and never have had any auth issues.

jimcrapo avatar Oct 05 '21 19:10 jimcrapo

@atrimony Could you provide us with an example of what you paste into the auth.json file. (of course redact you credentials first)

LunarPenguin avatar Oct 16 '21 15:10 LunarPenguin