Skip to content

jonas-jun/MyStockTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Stock Tracker: Check your stocks easily

by Junmay github
2021-08-03 major update

  • existing stock price scraper did not work well, because 'naver.com/sise_day' pages might be changed not to be scrapped.
  • the new program scrap stock informs from 'naver.com/sise' pages

Code Description

price_inform.py

get stock information: price, volume, rate, code

scrap_news.py

get news information from Naver news.

  • start, end: start date and end date (defualt: 3 days ago to today)
  • sort: {0: reliable, 1: latest}
  • max_page: how many pages (Naver news) to scrap?

main.py

run all.

  • --start
  • --end
  • --sort
  • --max_page

'NAVER 카카오 삼성전자' (split by a space)

How to run?

[example] 삼성전자, 카카오, 라온피플, 그린플러스, NAVER의 현재가(오늘 종가) 및 2021년 7월 30일 ~ 2021년 8월 3일 네이버뉴스 (최신순) 최대 3페이지까지 크롤링
python main.py --start 20210730 --end 20210803 --sort 1 --max_page 3
"상장 기업명을 space로 구분하여 정확하게 입력해주세요"
삼성전자 카카오 라온피플 그린플러스 NAVER
example_case

result excel file

  • sheet1: 당일 현재 시점 주가 정보
    sheet1
  • sheet2: 옵션에 따라 크롤링한 뉴스 정보
    sheet2

[outdated version]

class stock_inform

get stock information: price, volumn, supply and demand, and so on.
[example] after market on 2020-11-13

image_stock.jpg

class scrap_news

get news information from Naver news. (start date to end date)
[example] maxpage=30, in late 2days, sorting=1 (from new ones to old ones)

name, title, date, media, summary, link

image_news.jpg

def full_run

  1. debug all process.
  2. make xlsx file.

How to Run?

companies = ['두산중공업', '세아제강', '위세아이텍', '이엔드디', '솔트룩스']
full_run(companies=companies, start=20201111, end=20201114, maxpage=3)

[example] image_run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages