UnMars / Prolific-Joiner

Automatically join www.prolific.co studies
GNU General Public License v3.0
31 stars 11 forks source link

Doesn't work #19

Closed terefere2033 closed 5 months ago

terefere2033 commented 6 months ago
Getting a new bearer token...

DevTools listening on ws://127.0.0.1:3607/devtools/browser/cf51a104-3059-4337-afd5-29ef2dd69e86
Captcha solved in 0.24415802955627441s

Since today, it has stopped working and stuck at "Captcha Solved."

smithjohn3 commented 6 months ago

have the same thing, any idea how to solve it?

terefere2033 commented 6 months ago

All I know is that they changed something with logging in because if I turn off the --headless parameter, it automatically logs out after logging in. No idea how to fix it.

ndrefg commented 6 months ago

Seems to be a problem with getting the token I guess... Also doesn't work here

SmatMan commented 6 months ago

Yep, same issue. Looking into the request logs, they do not share the token in the same way as before:

if request.url.startswith("https://internal-api.prolific.com/openid/authorize?client_id="):
    new_bearer = request.response.headers['location'].split("&")[0].split("access_token=")[-1]

The above url is no longer accessed when logging in, and other URLs do not have a similar access_token field from what I can find.

In regular api calls in the browser, authorization is done with a Bearer that is much longer, for me 862 characters and separated in seemingly random intervals with periods. Using this token doesn't allow me to authorize however. Looking for another way to authorize but not looking promising at the moment

SmatMan commented 6 months ago

Found a fix, working on a pull request!

isacgabo commented 6 months ago

@SmatMan and @UnMars

Can you please check the script using a clean install? Did on my system, script is still broken.

SmatMan commented 6 months ago

Can you please check the script using a clean install?

Did on my system, script is still broken.

What doesn't work? What's broken? Please give more details?

EnriGrossi commented 6 months ago

In my case, I have re enabled capcha again ;)

isacgabo commented 6 months ago

Sorry, guys, the issue was on my end. I've managed to get the latest commit of the script working after a while.