Posts

Showing posts from October 11, 2020

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

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

Ultimate Roadmap to Highly Valued Generative Artificial Intelligence Certification Frameworks

Ultimate Guide to Text to Video AI Tools

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