Featured post

Monthly Dividend ETF Strategy to Build Real Passive Income

Image
Discover how to construct a cash-flowing monthly dividend portfolio using low-cost ETFs to cover living expenses without liquidating principal assets. Looking at account statements every month can feel frustrating when bills arrive every thirty days, but traditional dividend stocks only pay every quarter. This timing mismatch often forces investors into unnecessary cash buffer traps or suboptimal bond yields just to keep cash flows steady. I used to think chasing high yield was the ultimate shortcut to financial freedom until a few painful dividend cuts taught me otherwise. The reality is that building a reliable monthly income engine requires balancing yield stability, expense ratios, and fund-level diversification. Why Monthly Dividend Portfolio Strategy Matters Right Now High interest rates and persistent inflation have reshaped how we think about passive income strategies today. Relying purely on stock price appreciation can leave retirees vulnerable to market drawdowns when fo...

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

Rebuild Health Burn Fat Naturally

Master Trading Volume Secrets With Kiwoom 0150 For Massive Breakouts

Next Generation Visual Creation with Nano Banana 2 and Gemini 3.1 Flash Image

Popular posts from this blog

Rebuild Health Burn Fat Naturally

Master Trading Volume Secrets With Kiwoom 0150 For Massive Breakouts

Next Generation Visual Creation with Nano Banana 2 and Gemini 3.1 Flash Image

Best AI SEO Tools to Dominate Search in 2026

Mastering the Art of Concentration