-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Detected on Remote Linux(Ubuntu) vs Undetected On Mac #11
Comments
Quick update: I am still getting this issue. To extract variables from the equation, IE Ubuntu vs Mac os and Local vs Amazon, I'm spinning up a ubuntu instance on an old mac mini to see if the code can run there. Will update on how it goes! |
Overcomplete issues , i love em! If i were you i would check the user agent vs a regular browser. Might be the operating system OS part is still hardcoded to windows
|
Just installed (updated) my package on my linux box and it seems fine (i always use distil since that is the tool nearly all sites use.
|
also dont use these :
All correct settings are already done when using the ChromeOptions class from my package. |
Appreciate your help! Good news! Figured out what was happening, The way the chrome driver was being patched for linux was Will also attach the driver that solved my issue. |
Thank you, afaik the darwin driver is being patched just fine. What could have happened.. .you had a driver in the current working dir. the module assumes if a driver is in the cwd, it has already been patched and does not retry it. However, always welcome to post your improvements. |
Determined the issue was due to the version of chrome that I installed to the linux machine was the issue. Vs the one that was being downloaded. Once I passed the Correct version to the install it worked well. Appreciate your help in debugging :) |
I am working on a white hat side project, my intention is to scrape behind a login screen of my own data so that I can plot it :)
I am able to run the code on local env (mac os/ details below) it logins in and able to go to the desired behind login page.
However when promoted to remote linux server (ubuntu/ details below) it fails to login and is rerouted back to login page.
At first I thought it was ip/ dns registering as blacklisted but then I ran both behind a nordvpn (server: us5793) and was still getting the same result: (Works on local not on Remote)
This is the same result for local env and remote env
The expected result is that the function below returns success in finding the "mytrips" text within the html. This indicates the login was a success.
My Speculation Is one of two things,
1 the chromedriver binary responds differently to the
cdc
replacement you do in your code acts differently in my linux env2 the way javascript is reinjected back into the code isn't correctly working in linux.
Other found resources:
How to inject JS and beat detection
Many Tests for bot indication
general chrome headless My code passes this for both environments
I'm going to continue hacking away at this thing and would love to help develop a solution for this and other things moving forward :) , Ideally would love to have the equivalent of the networking tab in inspect to debug these things.
Tried this in python3.6 & 3.8. No luck on either.
achieved running behind nordvpn with a shell script
**Created a fake account for you to test on as well **
The text was updated successfully, but these errors were encountered: