노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


yahoo finance 활용(3), 미국 주식 현재가와 비교 하기




1. Scraping 


How to scrape Yahoo Finance and extract stock market data using Python & LXML , https://www.scrapehero.com/scrape-yahoo-finance-stock-market-data/



* 스크래링 결과물, JSON 파일 구조 분석


# Get Values : Year Target Est., EPS, Earnings Date
y_Target_Est = j_l_s["quoteSummary"]["result"][0]["financialData"]["targetMeanPrice"]['raw']  # noqa



2. 추가할 부분


이전글(2)에서 API가 제공하는 과거 시점의 Data이슈가 있으므로, 이전글(2)에서  '주식 목록 읽어서 가져오기' 부분과 상단의 스크래핑하는 부분을 결합 한다면, 최신 가격을 비교하는 코드를 작성 가능할것으로 보임





블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,