Crawling1 [파이썬] 네이버 금융에서 종목별 수정주가 가져오기(크롤링) ▼ 코드 전문 import requests from bs4 import BeautifulSoup # 네이버 금융에서 종목 가격정보와 거래량을 가져오는 함수: get_price def get_price(company_code): # count=3000에서 3000은 과거 3,000 영업일간의 데이터를 의미. 사용자가 조절 가능 url = "https://fchart.stock.naver.com/sise.nhn?symbol={}&timeframe=day&count=3000&requestType=0".format(company_code) get_result = requests.get(url) bs_obj = BeautifulSoup(get_result.content, "html.parser") # inform.. 2020. 3. 22. 이전 1 다음