Skip to main content

A web scraper for ticker symbols from yahoo finance

Project description

Yahoo ticker downloader
=======================

A web scraper for ticker symbols from yahoo finance.

It produces a .csv file for stocks, futures, ETF, indexes, mutual funds
and currency. The ticker symbol, company name and exchange are saved.
The category the symbol belongs to is only stored for stock symbols.

It gets its data from "http://finance.yahoo.com/lookup/"_.

Installation
------------

From python package manager (preferred):

.. code:: bash

pip install Yahoo-ticker-downloader

From source:

.. code:: bash

python setup.py install

Running
-------

The first param is one of the following types: ``stocks`` ``etf``
``index`` ``currency`` ``future`` ``mutualfund``

.. code:: bash

YahooTickerDownloader.py stocks

The program takes up a lot of RAM (up to 2GB) and several hours before
it produces the .csv file. The program supports suspending and resuming
a download. Simply press CTRL+C to suspend download. Restart the program
in the same working directory to resume downloading.

Example of output:

.. code:: csv

Ticker,Name,Exchange,categoryName,categoryNr
ENZ,"Enzo Biochem Inc.",NYQ,"Medical Laboratories & Research",525
ENZN,"Enzon Pharmaceuticals Inc.",NMS,Biotechnology,515
ENZR,"Energizer Resources Inc.",PNK,,0
EOAA.DE,"E.ON AG",GER,"Diversified Utilities",913
KMX,"CarMax Inc.",NYQ,"Auto Dealerships",744
KMY.MU,KIMBERLY-CLARK,MUN,"Personal Products",323
KN1.DU,ECOUNION,DUS,"Business Software & Services",826
KNCAY,"Konica Minolta Holdings Inc.",PNK,,0
KND,"Kindred Healthcare Inc.",NYQ,"Long-Term Care Facilities",523
KNDI,"Kandi Technologies, Corp",NGM,"Auto Manufacturers - Major",330
...ect

Depending on the type you are downloading, you will get 3.000 to 14.000
entries.

Further resources
-------

Download history for symbols: ystockquote_

.. _"http://finance.yahoo.com/lookup/": http://finance.yahoo.com/lookup/
.. _ystockquote: https://pypi.python.org/pypi/ystockquote/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Yahoo-ticker-downloader-0.2.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file Yahoo-ticker-downloader-0.2.3.tar.gz.

File metadata

File hashes

Hashes for Yahoo-ticker-downloader-0.2.3.tar.gz
Algorithm Hash digest
SHA256 54697b188c1442d11aeb39b5170295dac22ff9a63a6ff03de4fef1e5f39a4177
MD5 edd534a0cf31136a77bd45f45d3c7911
BLAKE2b-256 3a6e8daa3363ca827d6d2770bfc9cb5eba2c07b34588d334a3fea51fc61b9d2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page