Вот один из веб-сайтов, к которым я пытался получить доступ: «https://blog.naver.com/lily8744/221229107142»
Вот сообщение об ошибке:
Код: Выделить всё
...raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Код: Выделить всё
def pull_data(linksarray, textdata):
for item in linksarray:
driver.get(item)
wait = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, 'body')))
blog_post_inner = driver.execute_script("return arguments[0].innerHTML", wait)
soup = BeautifulSoup(blog_post_inner, 'html.parser')
for blogtext in soup.find_all('p', class_="se_textarea"):
print(blogtext.get_text())
Подробнее здесь: https://stackoverflow.com/questions/493 ... e-executes