This program scrapes informations about Chinese stocks online. Include basic company informations from Sina Stock website and current Price information from Xueqiu website.
Before using, make sure you have installed python (version 3.6 or newer).
The program requires some python libraries to be installed before run.
Run following commands using to install dependencies:
- requests
pip3 install -r requirements.txt
-
Clone the repo
-
To run the program, use command
python3 run.py
Input your desired beginning and ending company stock ID to collect the information about all those companies in the middle.
Example: 1 (equivalent to 000001)
The program will generate a new .xlsx
file in the src
folder.
Added Xueqiu website for current date's price info