998 B
Stock Symbol Scraper
Scrapes the entire list of stocks off of MarketWatch.com, which includes company name, stock symbol, country, exchange, and sector (if available).
NOTE: No prices or financials of any kind are collected.
At this time the scraper performs this task purely sequentially. Asynchronous HTTP requests to drastically speed up the process will be implemented soon.
This is not intended to be run continuously since the data gathered this way will rarely change.
Dependencies
- Python 3.7+
Should run on most Linux/Windows systems. Tested on Arch and Windows 10.
Building
Clone this repo, install build
via pip, then run pip -m build
from the repository's root directory. This should produce a dist/
subdirectory with a wheel (build) and archive (source) distribution.
The resulting whl
-file can be installed via pip install path/dist/***.whl
.
Running
...