A simple Python library for getting stock prices and company names from Yahoo Finance.
Project description
Yahoo Requests
By Theodor Gajhede from the northeren part of Denmark
This is a small library for getting prices and fullnames of companies using Yahoo
How to use
from YahooRequests import YahooRequests as yr
# Now you can just print this value or assign it as a variable
yr.price("googl")
# The same goes for name
yr.name("googl")
YahooRequests.price(ticker)
It is very simple you are only required to input a ticker and it will return the live price
the ticker will be unpacked using * so it can be a str, or a single byte list like ["googl"]
YahooRequests.convert(ticker)
The same goes for convert, the returned value will be the full company name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
YahooRequests-0.1.5.3.tar.gz
(3.6 kB
view details)
File details
Details for the file YahooRequests-0.1.5.3.tar.gz
.
File metadata
- Download URL: YahooRequests-0.1.5.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a3c71359178bf9838fce917997c0c9e5eadf092d1a10b5495f5f3bbf0d6aab |
|
MD5 | cdbf34204c6665ed3a88c902f16ce431 |
|
BLAKE2b-256 | 59b90465929ac910e325a3cd6908cb4a4b55de9224095a7f4edb56a1268f8751 |