Featured post

Fast Debt Consolidation Approval Blueprint

Image
  Slash your debt consolidation waiting time and dodge instant rejections with these proven personal credit and paperwork strategies. Strategic Moves for Accelerated Loan Consolidation I still remember sitting at my desk three years ago, staring at four different credit card bills and two high-interest personal loans. The interest rates were quietly eating my monthly income alive, and every time I thought about applying for a single consolidation loan, the fear of getting flat-out rejected held me back. When you decide to clean up your finances, time is literally money. Waiting weeks for an underwriting decision only to receive a canned denial email isn't just frustrating, it actively damages your credit score through unnecessary hard inquiries. Over the years, working closely with financial underwriters and testing application workflows, I discovered that passing the loan review fast isn't about luck. It comes down to presenting your profile so cleanly that the underwriting al...

os.chdir("path") 디렉토리 찾을때 오류나서 해맬때

 #encoding = utf-8


from selenium import webdriver
from bs4 import BeautifulSoup

driver = webdriver.Chrome ("\Users\choi\chromedriver_win32")
driver.get("https://mensaar.de/#/menu/sb")
bs = BeautifulSoup(driver.page_source, 'html5lib')
print(bs.findAll("div"))

위와 같이 selenium을 이용해서 페이지를 파싱하려고 하는데 계속 에러가 발생합니다. 현재 chromedriver는 설치가 되어있는 상태고, "\U" 이 부분 때문에 유니코드로 인식되는 에러가 발생한다고 하는 것 같은데, 스택오버플로우에서 찾은 해결방법

  1. 따옴표 앞에 r 붙이기
  2. \를 /로 바꾸기
  3. \를 \로 바꾸기

모두가 적용이 되지 않습니다. 에러의 내용은 아래와 같습니다..

C:\Users\choi\AppData\Local\Programs\Python\Python36-32\python.exe C:/Users/choi/PycharmProjects/movie/mensa2.py
  File "C:/Users/choi/PycharmProjects/movie/mensa2.py", line 5
    driver = webdriver.Chrome ("C:\Users\choi\chromedriver_win32")
                              ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Process finished with exit code 1

Comments

7Day

Ultimate Roadmap to Highly Valued Generative Artificial Intelligence Certification Frameworks

Ultimate Guide to Text to Video AI Tools

90도 엘보 원하는각도 자르는방법.배관 질라 길이 계산법

Popular posts from this blog

Ultimate Roadmap to Highly Valued Generative Artificial Intelligence Certification Frameworks

Ultimate Guide to Text to Video AI Tools

90도 엘보 원하는각도 자르는방법.배관 질라 길이 계산법

KT M 모바일 착신전환 서비스 신청 및 방법

Google Search Console에 웹사이트를 등록