A tool that scrapes the Toronto Stock Exchange (TSX) to create a directory of:
- Company ticker symbols
- Company names
- Industry classifications
Note: This tool only lists companies. ETFs (Exchange Traded Funds) are not included in the directory.
The information is stored in an SQLite database and can be dumped to JSON with the --dump option.
- Clone this repository
- Install Python dependencies:
pip install -r requirements.txtScrape company data:
./pleco.py --allOutput JSON list of all companies:
./pleco.py --dumpExample output:
[
{
"symbol": "TSE:AW",
"name": "A & W Food Services of Canada Inc.",
"industry": "N/A"
},
{
"symbol": "TSE:AAB",
"name": "Aberdeen International Inc.",
"industry": "Finance"
}
]