It honestly frustrates me that after several attempts at solutions google still gives me this error:
Since there was a similar post about this question, I thought to try the solutions given by https://stackoverflow.com/a/60117617/12556138, however to no avail the solutions he provided did not work, because I tried to do exactly the ff:
a. adding the ff. options to my code
edge_options.add_argument("--disable-web-security")
edge_options.add_argument("--allow-running-insecure-content")
edge_options.add_argument("--user-data-dir=C:/Users/Mig/AppData/Local/Google/Chrome/User Data/Profile 1")
b. turning off 2-factor authentication
c. tried turning on less secure apps but I've researched that google already has removed the option to allow connections from less secure apps starting from May 30 2022. That you have to enable 2-step verification on your Google account and generate an app password123 to use Google SMTP server or other third-party apps that require Google sign-in, which is a direct contradiction to solution b.
d. JavaScript is always turned on in my Edge browser
e. tried also deleting all the history and saved data on my browser
f. tried signing my google account out of all devices remotely in https://myaccount.google.com/
The following are also my error messages:
[<some token>/184906.747:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
[<some token>/184906.769:ERROR:assistance_home_client.cc(32)] File path C:\Users\Mig\AppData\Local\Temp\scoped_dir1308_592920665\Default
DevTools listening on ws://127.0.0.1:<some token>
[<some token>/184908.140:ERROR:fallback_task_provider.cc(124)] Every renderer should have at least one task provided by a primary task provider. If a "Renderer" fallback task is shown, it is a bug. If you have repro steps, please file a new bug and tag it as a dependency of crbug.com/739782.
[<some token>/184909.398:ERROR:smartscreen_dns_resolver.cc(110)] SmartScreenDnsResolver::OnComplete Error: -7 DidTimeOut: 1 URL: https://www.linkedin.com/mynetwork/invite-connect/connections/
done!
[<some token>/184912.991:ERROR:gpu_disk_cache.cc(216)] Failed to create blob cache entry: -2
(gmail-automations) D:\Projects\To Github\auto-job-app-sender>[<some token>/184918.305:ERROR:device_event_log_impl.cc(222)] [18:49:18.305] Bluetooth: bluetooth_adapter_winrt.cc:1058 Getting Default Adapter failed.
Below is my main python script:
def main():
# # if using chrome
# chrome_options = ChromeOptions()
# chrome_options.add_experimental_option('detach', True)
# service = ChromeService(executable_path=ChromeDriverManager().install())
# driver = webdriver.Chrome(service=service, options=chrome_options)
# if using edge
edge_options = EdgeOptions()
edge_options.add_experimental_option('detach', True)
# edge_options.add_argument("--disable-web-security")
# edge_options.add_argument("--allow-running-insecure-content")
# edge_options.add_argument("--user-data-dir=C:/Users/Mig/AppData/Local/Google/Chrome/User Data/Profile 1")
# edge_options.add_argument("--profile-directory=Default")
service = EdgeService(executable_path=EdgeChromiumDriverManager().install())
driver = webdriver.Edge(service=service, options=edge_options)
links_to_connections = collect_links_to_connections(driver=driver, link="https://www.linkedin.com/mynetwork/invite-connect/connections/")
# collect_recruiter_info(driver, links)
I also had a colleague sign in to his linked in via his google account and mind you that his account had two-factor authentication enabled so that begs the question. What is wrong with my google account or my code for that matter that doesn't allow me to sign in to my google account using selenium web driver even if I had two-factor authentication disabled?
