Python interface to www.investing.com/stock-split-calendar/
- stock-splits-1982-2017_12_20.tsv [Click on the link and hit the download button on the right]
- ~59943 records
- Given for convenience (generate yours by running the script)!
investing.get_stock_split_calendar(date='2017-04-10', debug=True)
date
: The day on which to execute the query.debug
: Print some information to the console (default is True).returns
: Returns the list of the stock split records (name, symbol, country, factor, date)
Stock split calendar for 2017/12/15.
This translates to:
2017-12-15
- C&S Asset Management 032040 south_korea 1:5
- Cayman Golden Century 900280 south_korea 1.152:1
- STX 011810 south_korea 1:10
- Sumeet Industries Ltd SUIN india 1.08:1
- Marindi Metals MZN australia 1.011:1
- Transurban Group TCL australia 1.005:1
- Faes Farma FAE spain 1.034:1
- Think Smart SA THK spain 1.026:1
- Feedback Tech 8091 taiwan 1:1.43
- Concierge Tech CNCGD usa 1:30
- Indata IDTA poland 1:10
- Nordic Mining NOMIN norway 1.004:1
git clone https://github.com/philipperemy/stock-split-calendar.git
cd stock-split-calendar
pip3 install -r requirements.txt
pip3 install . # install it as a package!
# will connect to investing.com and start fetching the stock splits between 2018-03-01 and 2018-04-01 in output.tsv
python3 stock_splits_to_file.py --end_date 2018-04-01 --start_date 2018-03-01 --output_tsv_filename output.tsv
# Same as above, but between now (today) and 2000-01-01.
python3 stock_splits_to_file.py --end_date now --start_date 2000-01-01 --output_tsv_filename output.tsv
You can see the progression by opening another terminal and running this command:
cd stock-split-calendar
tail -f output.tsv