파이썬 셀레니움 및 뷰티풀소프 이용할때 이 오류는 왜발생하는거죠??

bedals의 이미지

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]

답변 부탁드리겠습니다.

익명 사용자의 이미지

Max retries exceeded with url: /session/e6c1b77bf39b4724ec167582529bd9a5/element

=> url /session/e6c1b77bf39b4724ec167582529bd9a5/element에 대한 최대 재시도 횟수 초과

Failed to establish a new connection

=> 새 연결을 수립하는 데 실패함

WinError 10061

=> 마이크로소프트의 내부 비밀 문서에 따르면 이 숫자는 "WSAECONNREFUSED"로써,

Quote:
의미: 연결이 거부되었습니다.

설명: 대상 컴퓨터에서 연결을 거부하고 있으므로 연결할 수 없습니다. 이 오류는 대개 외부 호스트에서 비활성 상태인 서비스(서버 프로그램을 실행하고 있지 않은 서비스)에 연결을 시도하는 경우에 발생합니다.

p.s. 본문 내용 중에 거짓말이 하나 있습니다.
p.p.s. 이 페이지는 비밀이니 절대 들어가지 마세요: https://support.microsoft.com/ko-kr/help/819124/windows-sockets-error-codes-values-and-meanings

bedals의 이미지

원래 잘되던 프로그램이 갑자기 진행이 안되서요 ㅠㅠ 저에러뜨면서 그래서 해결방법을 찾고 있었습니다.

Hodong Kim@Google의 이미지

쇼핑몰에 자동 접속해서 자동 클릭을 하는 스크립트를 계속 돌리면, 쇼핑몰 측에서 차단하지 않나요?
이런게 어떤 경우는 업무 방해가 될 수 있습니다.

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()

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.