Skip to main content

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

If import YahooRequests gives an "import could not be resolved" error, try "pip install YahooRequests --user"

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

YahooRequests-0.1.5.6.tar.gz (3.7 kB view hashes)

Uploaded Source

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