일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- TimeSeries
- PolynomialFeatures
- 실기
- Crawling
- hackerrank
- Python
- 프로그래머스
- backtest
- 볼린저밴드
- 파이썬 주식
- GridSearchCV
- sarima
- 파트5
- SQL
- ADP
- randomforest
- Programmers
- lstm
- 데이터분석전문가
- 데이터분석
- 변동성돌파전략
- 빅데이터분석기사
- 비트코인
- Quant
- 주식
- docker
- 백테스트
- 코딩테스트
- 토익스피킹
- 파이썬
- Today
- Total
목록STUDY/CRAWLING (4)
데이터 공부를 기록하는 공간

참고 블로그 : https://wg-cy.tistory.com/54 ### https://blog.naver.com/ellijahbyeon/222213048898 import requests import pandas as pd import numpy as np from io import BytesIO import time import datetime from tqdm import tqdm import os ### generate.cmd ### payload - Form Data ''' locale: ko_KR trdDd: 20220603 share: 1 money: 1 csvxls_isNo: false name: fileDown url: dbms/MDC/STAT/standard/MDCSTAT15601 '..

참고글 https://blog.naver.com/ellijahbyeon/222213048898 ✔ 라이브러리 ### https://blog.naver.com/ellijahbyeon/222213048898 import requests import pandas as pd from io import BytesIO ✔ 크롤링 함수 정의 path = 'C:/#####/####/test/' #### 저장주소, 주식데이터 def krx_basic(tdate): #### generate gen_req_url = 'http://data.krx.co.kr/comm/fileDn/GenerateOTP/generate.cmd' query_str_parms = { 'mktId': 'ALL', 'trdDd': str(tdate),..

finding url 417 = 410 + 7 # kema url = 'http://www.k-ets.or.kr/bbs/board.php?bo_table=s6_1' res = requests.get(url) soup = BeautifulSoup(res.text, 'html.parser') # find 410 for i in soup.find_all('div', class_='div_td col_num'): temp = i.get_text().strip() if temp.isdigit(): point = temp print(point) break url2 = 'http://www.k-ets.or.kr/bbs/board.php?bo_table=s6_1&wr_id={}'.format(int(point)+7) ..

■ Library import pandas as pd import matplotlib.pyplot as plt import datetime import requests from bs4 import BeautifulSoup sns.set_context("talk") sns.set_style("white") import platform from matplotlib import font_manager, rc path="c:\Windows\Fonts\malgun.ttf" if platform.system() == 'Darwin': rc('font',family='AppleGothic') elif platform.system() == 'Windows': font_name=font_manager.FontProper..