Posts

Showing posts from October 11, 2020

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...

ETF 종목 가져오기

Image
  import requests import json from pandas.io.json import json_normalize url = 'https://finance.naver.com/api/sise/etfItemList.nhn' json_data = json.loads(requests.get(url).text) df = json_normalize(json_data[ 'result' ][ 'etfItemList' ]) df.to_excel( 'etf_list.xlsx' );

종목코드표현

  import sys from PyQt5.QtWidgets import * from PyQt5.QAxContainer import * from PyQt5.QtCore import * class Kiwoom (QAxWidget): def __init__ ( self ): super (). __init__ () self ._create_kiwoom_instance() self ._set_signal_slots() def _create_kiwoom_instance ( self ): self .setControl( "KHOPENAPI.KHOpenAPICtrl.1" ) def _set_signal_slots ( self ): self .OnEventConnect.connect( self ._event_connect) def comm_connect ( self ): self .dynamicCall( "CommConnect()" ) self .login_event_loop = QEventLoop() self .login_event_loop.exec_() def _event_connect ( self , err_code): if err_code == 0 : print ( "connected" ) else : print ( "disconnected" ) self .login_event_loop.exit() def get_code_list_by_market ( self , market): code_list = self .dynamicCall( "GetCodeListByMarket(QString)" , market) cod...

종목코드 받아오기

  import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QAxContainer import * class MyWindow (QMainWindow): def __init__ ( self ): super (). __init__ () self .kiwoom = QAxWidget( "KHOPENAPI.KHOpenAPICtrl.1" ) self .kiwoom.dynamicCall( "CommConnect()" ) self .setWindowTitle( " 종목 코드 " ) self .setGeometry( 300 , 300 , 300 , 150 ) btn1 = QPushButton( " 종목코드 얻기 " , self ) btn1.move( 190 , 10 ) btn1.clicked.connect( self .btn1_clicked) self .listWidget = QListWidget( self ) self .listWidget.setGeometry( 10 , 10 , 170 , 130 ) def btn1_clicked ( self ): ret = self .kiwoom.dynamicCall( "GetCodeListByMarket(QString)" , [ "0" ]) kospi_code_list = ret.split( ';' ) kospi_code_name_list = [] for x in kospi_code_list: name = self .kiwoom.dynamicCall( "GetMasterCodeName(QStr...

구글 검색어 텍스트 자동완성 끄는방법

Image
 구글 우측에 점3개 클릭 설정 들어가서 요거 체크 해제하면 됨

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" 이 부분 때문에 유니코드로 인식되는 에러가 발생한다고 하는 것 같은데, 스택오버플로우에서 찾은 해결방법 따옴표 앞에 r 붙이기 \를 /로 바꾸기 \를 \로 바꾸기 모두가 적용이 되지 않습니다. 에러의 내용은 아래와 같습니다.. 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

7Day

Rebuild Health Burn Fat Naturally

Master Trading Volume Secrets With Kiwoom 0150 For Massive Breakouts

Pushing the Limits of FPV Cinematic Motion using Kling Extreme Motion Engine