Skip to main content

A Library for scraping all Ticker Symbols from Yahoo Finance

Project description

YAHOO FINANCE SYMBOLS

This Library helps in scraping 350,000+ symbols from yahoo finance. The symbols are saved in a local sqlite database which can be used directly or accessed with the rust or python library functions.

Installation

Python

pip install yahoo_finance_symbols

Rust

cargo install yahoo_finance_symbols

Examples

Python

import yahoo_finance_symbols as ys

# Fetch All Symbols
all_symbols = ys.get_symbols()
print(all_symbols)

# Search for Symbols With a Keyword
symbols = ys.search_symbols("Bitcoin", "ETF")
print(symbols)

# Update the Database
ys.update_database()

Rust

use yahoo_finance_symbols::keys::{AssetClass, Category, Exchange};
use yahoo_finance_symbols::{get_symbols, search_symbols, update_database};
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {

    // Fetch All Symbols
    let all_symbols = get_symbols(AssetClass::All, Category::All, Exchange::All).await?;
    println!("{:?}", all_symbols);

    // Search for Symbols with a Keyword
    let symbols = search_symbols("Apple", "Equity").await?;
    println!("{:?}", symbols);

    // Update the Database
    update_database().await()?;
}

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_finance_symbols-0.1.2.tar.gz (23.6 kB view details)

Uploaded Source

Built Distributions

yahoo_finance_symbols-0.1.2-cp312-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12 Windows x86-64

yahoo_finance_symbols-0.1.2-cp312-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.12 Windows x86

yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

yahoo_finance_symbols-0.1.2-cp311-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

yahoo_finance_symbols-0.1.2-cp311-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.11 Windows x86

yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

yahoo_finance_symbols-0.1.2-cp310-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

yahoo_finance_symbols-0.1.2-cp310-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.10 Windows x86

yahoo_finance_symbols-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

yahoo_finance_symbols-0.1.2-cp39-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.9 Windows x86-64

yahoo_finance_symbols-0.1.2-cp39-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.9 Windows x86

yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_10_12_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9 macOS 10.12+ x86-64

yahoo_finance_symbols-0.1.2-cp38-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

yahoo_finance_symbols-0.1.2-cp38-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.8 Windows x86

yahoo_finance_symbols-0.1.2-cp37-none-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.7 Windows x86-64

yahoo_finance_symbols-0.1.2-cp37-none-win32.whl (2.4 MB view details)

Uploaded CPython 3.7 Windows x86

File details

Details for the file yahoo_finance_symbols-0.1.2.tar.gz.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0158f996dd016d944607fc5c882a350cb312db21c0b8cf5dd0364141dc861f1f
MD5 520ffd28a481f6a520dc2d9055e7b423
BLAKE2b-256 96a9956730b94714456f73bd147d91cc0b45421dacf3c190329b93232a49ef7a

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 f80e7a3d761d9991d3d0285df7edd1e9972651fae7b766a61f47ae228298be56
MD5 8af57629e92567227370f82c2e331af5
BLAKE2b-256 e8e7cf09d6feb2f32f05e3330e75052310192295aa4b2222fce9d5f3f993de1e

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp312-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp312-none-win32.whl
Algorithm Hash digest
SHA256 86ca0789bc4842118415e8ec0d2b00af08031ed446b18e2fc0a47816bc2ae37f
MD5 98aed8680c1ac4d00f0514a26cbfbac4
BLAKE2b-256 267185c5a191c5d469bc36ac8bf61a71bf149fbeb5bbadb25b7cd33f258391c6

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7230e17d8b159faf9db7bedb61e7604c30c212fb44b404ccb4a0e9b905feadb5
MD5 0f20c358dfdddfca5beec7dfbfd9af87
BLAKE2b-256 028a7125d3ccc5920a86be43132feb129c551c4ed2b4d55aa952b8de5aa7b711

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fb905eb7d36f4d9e842021a6b9172415d0844a6fbfec703d14c1a7db00bab033
MD5 50827b89fcd2c2b7cd8f69979c44178e
BLAKE2b-256 5b2750a4e7334f49232c4562c0a0b2a6c11a2acf05b4aaed11e7a20b064babb5

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 5de55f935d43c6f043d3e2b9d3dbc8050325dac521ae32821264e49d68654e2e
MD5 9ba135fc0df8eadef1f6a7ec3aec31a8
BLAKE2b-256 f69918b6ac6a5d9ff7f08fbc7288f860d0b91f89ffe5211ac306f232dcd12759

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp311-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp311-none-win32.whl
Algorithm Hash digest
SHA256 4ef29806b1d823a97fedb9a1a73256b3f3a0dbd5ccf0e3095e37a68e571e41c7
MD5 75266c9355579f2906a66b247d8bcfb6
BLAKE2b-256 08221478bb7db04625e38c066f43be851ca11689a645860d769965d3c3a2b292

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54b489a7ab027fbc2b6bba6bfe91a9c66f4901ca4bb669ccfd7ef002efa06738
MD5 bf86e34be2b058e6a2d487b0c0c84ebc
BLAKE2b-256 3fe23355df20dc03a7164a37d4a5c12bc2e3a4001c01a0983d15e5eabe9c028b

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5231ec6e00c9a4c949ad157abc106243ba014b96d20b3daaef942e444af6e4aa
MD5 8b77d0da10d0e8fb0cfe785cf175055a
BLAKE2b-256 7ba7b8e75689aa9e41faf41b3ca030115218c3b10a670e642506d9c86df4bcab

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 bd08edc0890903e3690cc124db55f689f70031326618bdfd117b61a62feec640
MD5 1b7e94a08b7c6db2d75462346d6b3a25
BLAKE2b-256 863ed28915e3f4dbc4f35b2b5619736df147ca5b03535bea3c68a80ebb5514c0

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp310-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp310-none-win32.whl
Algorithm Hash digest
SHA256 5584f8db404ab91ef626c417da72e358854a58e4937570077c62578f50ee5357
MD5 1cd3279330c4ab2cf12045b82a9d5a4a
BLAKE2b-256 966087392dae4b655ce69c9ccbf605ec0537223c7343667f35d15a26c5f0a889

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a49faca257413e8946bc4870650df960a4835ce918eaa9e4279f0467cb6c44ce
MD5 f5a74ca50f7c05d2a6b212de4f2f8c95
BLAKE2b-256 a1680e22e407cd0da3445eeaef2a184897f9090a775f8e8cd58c3fb03ed836d9

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21d56c07bf3f050ce3dce5f99b43fdad61b100e99835988e055bae8a55e472f8
MD5 160c835ffcb99e465d0f1c8413ad73d1
BLAKE2b-256 de6479f36b6d125a8f63b43c22d72d386dc001d0ff6a629218110b068bcbaa41

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e3e7a51c28eccccc559e8b61b2cd821798c2a6cf56eb7730d1398d69295bd716
MD5 7432f031cc2eae39d2da8c5c80371d7e
BLAKE2b-256 b93a5889ec35735d560c6d557f8b375c33820e89afd0f93c60df27317c22c82c

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 939f8c55544277885963a6232863bbbba40282d1b09776671874210b47e16102
MD5 4e886cd3fb0197f76a8cd383e37d67f6
BLAKE2b-256 be5ff3f8b254e7525f978beb938c78e0d4d446bcc77b8663590e72fce4952bde

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp39-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp39-none-win32.whl
Algorithm Hash digest
SHA256 b466430ba2e7d963c58266bc4ff9aa3f36644ad6d35df7cdca0dc9c61862d31e
MD5 adf63420ab03dc69fc159c006e946508
BLAKE2b-256 001387b4a34f3cc618cf5e1575b5aa926e0231bfd3a7532db74f1efc9c2da939

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed174f82975847ef7bdd2e20ffe5021cf2a5f7d815c290ed817df8f50273af53
MD5 7fcd73529177573f8ab8eb62fbace8c0
BLAKE2b-256 0433aa83dc7a38573dc7a9bebea225df0fd63944bbea4f9938eda3fa9c9c36d3

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d27396c7c8f88859f55cc2c4ac9010b8e0f550d9b13a5766321886723aaa584c
MD5 aeceba6538d804e555a64865da210a33
BLAKE2b-256 6ce44c984454f5ac48a3e830eda56cd85a5505de8ffd3ff2557a05404c06bebb

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 1378c2d678e85618c87b2f2fdc7f2e9af9fef40042a6fcb1d1c580aae8e9560a
MD5 2688d61f429dd5b74079708188d0fc19
BLAKE2b-256 ff4e1384cbee5e32eb3b526a8a8348772e0a16f2bdb1d017ef8e1fbf9996c66e

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp38-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 828d118693883a9ca644a3fda8a2aa26d894b3a383bed0132b9dc3afacc5daba
MD5 bb889e21e51e6eca6be48599720a9048
BLAKE2b-256 9e7d43ee19fc5c386fe630e4c81ec14fc5b45892b4616e7ea88362c49ce15e58

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 8826cfa4fde03ceb3ae0ea21d94a72c7d5e7ecb3d6b3058d0b6b62dd7cff20eb
MD5 25d56976dc7f2c278c9f25408006d6ec
BLAKE2b-256 c096c0934f3fddd613a607ddddeb89eaa4bc1b345bca40beded1f456463ae27a

See more details on using hashes here.

File details

Details for the file yahoo_finance_symbols-0.1.2-cp37-none-win32.whl.

File metadata

File hashes

Hashes for yahoo_finance_symbols-0.1.2-cp37-none-win32.whl
Algorithm Hash digest
SHA256 40cfd67af5aa49eae31c98d7215c5eaf675531ba884b2ca064358f611f3aaf40
MD5 019a0f9c09ef721efb1c2e87143e19b1
BLAKE2b-256 caab73adecf5497b2832c5ed60738065d59ec6900b32e64819ec197c76e87cc9

See more details on using hashes here.

Supported by

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