Catch stock report data from http://quote.eastmoney.com/ (China) and http://stock.finance.sina.com.cn (HK & US). And then export recnet 4 years data to .xlsx
.
- You should install nodejs first.
- Download this repo to local.
- Enter the project path and install dependencies
# use npm
$ npm i
# or use yarn
$ yarn
If on Windows OS, double click the data/_stock.bat
can start the program, or you can run the command below at the project root path:
$ npm run stock
If want search multiple, use ,
to split. The code should be like 600519
(China), 00700
(HK) or goog
(US). They could be split auto by group of cn
, hk
and us
.
The .xlsx
files will be export to data/
and named like cn_2019-9-18 15/31/42.xlsx
. Do what you want!