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.txt
Scrape company data:
./pleco.py --all
Output JSON list of all companies:
./pleco.py --dump
Example output:
[
{
"symbol": "TSE:AW",
"name": "A & W Food Services of Canada Inc.",
"industry": "N/A"
},
{
"symbol": "TSE:AAB",
"name": "Aberdeen International Inc.",
"industry": "Finance"
}
]