Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

CANNOT GET TO WORK! INSTALL ERROR + FREEZE! #4

Closed
XMVZ opened this issue Jan 20, 2022 · 11 comments
Closed

CANNOT GET TO WORK! INSTALL ERROR + FREEZE! #4

XMVZ opened this issue Jan 20, 2022 · 11 comments

Comments

@XMVZ
Copy link

XMVZ commented Jan 20, 2022

hi!

thank you so much for sharing this!
can't seem to get it to work. at first was having an error with install, but then found the code was deprecated, so implemented the below:

import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
driver.get('https://nowsecure.nl')

now when i run your code i am receiving a freeze error:

\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

amongst many other lines...

please help!

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

Also

ERROR: Could not find a version that satisfies the requirement seleniumwire (from versions: none)

@MainSilent
Copy link
Owner

I have added a requirements file, The code still works but the captcha_token.py didn't work for me, You need to set the cookie directly and get the hc_accessibility token and hard code it in main.py line 31

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

Ok so just to be clear, do NOT use the captcha_token.py file? Just use the main.py file and put the token into it? Isn't the token what we're trying to get here?

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

So what exactly is the script doing at that point?

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

Also do you have Discord or Telegram - I have a question for you about implementing POSTing the cookie to an API...

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

Btw, I ran captcha_token.py and got this in my browser:

{"error":"not-found"}

@MainSilent
Copy link
Owner

I meant the hc_accessibility token, This is the token that when you check the box it doesn't show you the dialog and let you to proceed without solving the captcha, This script uses that to generate new tokens for a site key to send requests

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

When I run captcha_token.py it returns the accessibility token for me... Maybe I'm wrong, but the console is printing the cookie...

@XMVZ
Copy link
Author

XMVZ commented Jan 20, 2022

Unless I'm looking at something else... I really just want to know how to then have this cookie POSTed to an API so it can be GET.

@MainSilent
Copy link
Owner

If you have that cookie now you can run main.py to generate a token and use that in the API to send request, Are you using that for discord?

@MainSilent
Copy link
Owner

This issue has been closed due to inactivity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants