Open albertoZurini opened 3 years ago
Uh... this has never happened to me before. Can you paste your code?
from linkedin_scraper import actions, Person
import chromedriver_hidden as uc # (using selenium webdriver throws the same as well)
options = uc.ChromeOptions()
options.add_argument('--incognito')
options.add_argument('--no-sandbox')
driver = uc.Chrome(executable_path="/usr/local/bin/chromedriver", options=options)
try:
actions.login(driver, email, password) # if email and password isnt given, it'll prompt in terminal
except Exception as e:
print("Exception! Reload the page or manually login; press enter when done")
input()
person = Person("https://www.linkedin.com/in/andre-iguodala-65b48ab5", driver=driver) # this doesn't get executed due to the chrome error
I found this network request tack
copy as curl
-> run doesn't return anything while curl https://www.linkedin.com/li/track
returns GOOD
, maybe this request has some sort of bot detection
because we're using selenium, the page should fully load including track if it runs. Can you run it without the chrome options? They may detect bot with incognito and no sandbox mode.
I'm currently using an undetected chromedriver https://github.com/ultrafunkamsterdam/undetected-chromedriver