본문 바로가기 메뉴 바로가기

Best Day of Your Life.

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Best Day of Your Life.

검색하기 폼
  • 분류 전체보기 (36)
    • Dev (26)
      • Python (8)
      • Flutter (6)
      • chatGPT (4)
      • Javascript, Nodejs (1)
      • Etc. (7)
    • Life. (2)
    • 창업지도사 (8)
      • 창업교육 전문가 (8)
  • 방명록

크롤링 (1)
BeautifulSoup 을 활용한 네이버 실시간 주식 시세 확인

1. beautifulsoup4 설치 pip install beautifulsoup4 2. import import requests from bs4 import BeautifulSoup import time 3. get_code 함수 정의 종목코드를 받아와서 네이버 금융에서 해당 종목의 HTML 코드 가져오기 def get_code(company_code): url = f"https://finance.naver.com/item/main.naver?code={company_code}" result = requests.get(url) bs_obj = BeautifulSoup(result.content, "html.parser") return bs_obj 4. get_price 함수 정의 가격 크롤링 def ..

Dev/Python 2023. 4. 12. 11:51
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • conda
  • parsing error
  • 맥 실리콘
  • 설치
  • 플러터
  • 창업
  • 기본
  • 창업교육전문가
  • 맥
  • 사업기회포착
  • youChat
  • flutter doctor
  • 기업가
  • 날짜 시간 추출
  • 파이썬
  • No Babel
  • 창업지도사
  • 가상환경
  • M1
  • homebrew
  • 자질
  • Auto Formatting
  • translaite
  • Flutter
  • 네이버실시간주식
  • Format code on save
  • 플러터 오류
  • 기업가 정신
  • ChatGPT
  • Python
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바