파이썬 셀레니움 및 뷰티풀소프 이용할때 이 오류는 왜발생하는거죠??
글쓴이: bedals / 작성시간: 금, 2019/05/10 - 11:15오후
HTTPConnectionPool(host='127.0.0.1', port=49374): Max retries exceeded with url: /session/e6c1b77bf39b4724ec167582529bd9a5/element (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061]
답변 부탁드리겠습니다.
Forums:


영어 번역을 해달라는 건가요?
Max retries exceeded with url: /session/e6c1b77bf39b4724ec167582529bd9a5/element
=> url /session/e6c1b77bf39b4724ec167582529bd9a5/element에 대한 최대 재시도 횟수 초과
Failed to establish a new connection
=> 새 연결을 수립하는 데 실패함
WinError 10061
=> 마이크로소프트의 내부 비밀 문서에 따르면 이 숫자는 "WSAECONNREFUSED"로써,
p.s. 본문 내용 중에 거짓말이 하나 있습니다.
p.p.s. 이 페이지는 비밀이니 절대 들어가지 마세요: https://support.microsoft.com/ko-kr/help/819124/windows-sockets-error-codes-values-and-meanings
답변 감사합니다.
원래 잘되던 프로그램이 갑자기 진행이 안되서요 ㅠㅠ 저에러뜨면서 그래서 해결방법을 찾고 있었습니다.
쇼핑몰에 자동 접속해서 자동 클릭을 하는 스크립트를
쇼핑몰에 자동 접속해서 자동 클릭을 하는 스크립트를 계속 돌리면, 쇼핑몰 측에서 차단하지 않나요?
이런게 어떤 경우는 업무 방해가 될 수 있습니다.
https://kldp.org/node/161565
for page_num in range(0,5): body = driver.find_element_by_xpath('/html/body') while num_of_pagedowns: body.send_keys(Keys.PAGE_DOWN) time.sleep(0.5) num_of_pagedowns -= 1 html = driver.page_source soup = BeautifulSoup(html,'lxml') ul = soup.find_all('ul', class_="_2klRMnwJXJ") titles =soup.find_all('li', class_="_1SzfBYA4Wc") for title in titles: item_name = title.find('span',class_='_2rxlO_K3YY').get_text().strip() print(item_name) keyword = title.get('id') rank += 1 if item_name == '라세아': print(str(rank)+"번째 : "+" {} : {} ".format(item_name,keyword)) driver.find_element_by_xpath('//*[@id="%s"]/a/div/div[2]/span[1]/span/span[text()="라세아"]'%(keyword)).click() driver.quit() else: elem = driver.find_element_by_xpath('//*[@id="content"]/div[5]/a[%d]'%(page_num+1)).click()