Skip to main content

Yahoo Requests - Python Library for Company Data Retrieval

Welcome to Yahoo Requests, a Python library designed to facilitate the retrieval of company information such as prices and full names using Yahoo's data sources.

Github Page Python Versions GitHub code size in bytes GitHub last commit (branch) GitHub Workflow Status (with event)GitHub Workflow Status (with event) GitHub Workflow Status (with event)GitHub

Features

Retrieve live prices, full names, and converted prices of companies (supports currency codes) Get the most popular news article about a company (early access feature) Calculate the average price of a stock in a time period Return a simple table with different information about the company Easy to use and install

Installation

To use Yahoo Requests, you can easily install it using pip:

pip install YahooRequests 

Usage

Here's how you can use Yahoo Requests to retrieve company data in Python:

from YahooRequests import YahooRequests as yr

# Get the live price of Google in USD
price = yr.price("googl")

# Get the full company name of Google
name = yr.name("googl")

# Get the converted price of Google (supports currency codes)
converted_price = yr.price("googl", "eur")

# Full company name of Google with no suffix (like inc or corp)
# If no argument is given, this will be included
no_suffix_name = yr.name("googl", suffix=False)

# Return a simple table with different information about the company
table_company = yr.basic_info("googl")

# Return the most popular news article about a company (Early access feature)
news = yr.news("googl", timespan=5, warning=True)

# Return the average price of a stock in a time period
average_price = yr.average_price("aapl", "2021-1-1", "2022-1-1")

Footnotes

Currency codes can be found Here.

Average analyst rating explanation:

  • If the average rating is close to 5, that means most analysts rate the stock as a sell. Conversely, if the average rating is close to 1, most analysts have a "buy" or "strong buy" rating. In summary, analyst ratings are often aggregated into a single score on a scale of 1–5.

Author

Theodor Gajhede from the northern part of Denmark.

Support

If you encounter issues with the library, try using the "--user" flag when installing with pip or send a support ticket to RedDied at reddied@gmail.com.

Credits

Special thanks to u/Diapolo10 for their contribution to version 1.0.

Metadata

Release files for YahooRequests 1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for YahooRequests 1.11
File Size Uploaded
yahoorequests-1.11.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for YahooRequests 1.11
File Interpreter ABI Platform
yahoorequests-1.11-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.1 kB

Release files / yahoorequests-1.11.tar.gz

Download URL yahoorequests-1.11.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
51da23dda99c2910b27aa647fd65512998c9a4d898b80a7379763addebda9388
BLAKE2b-256 checksum
How to use checksums
4035b6a41133fa9bea66020d210dfdea0818f228204d1430bda3d72d9314dbb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.0 Linux/6.2.0-1016-azure

Release files / yahoorequests-1.11-py2.py3-none-any.whl

Download URL yahoorequests-1.11-py2.py3-none-any.whl
Size 10.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2d14bbfabf2ccf72dfa4e7c62f10ec4b7f9fb56e2b7317ac05c0579490e98ede
BLAKE2b-256 checksum
How to use checksums
ec256de67b43052801b6fea72d51ed3070c22d93bacb1e46412c1c81d3b14883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.0 Linux/6.2.0-1016-azure

Release history Release notifications | RSS feed

This release

1.11 This release

2 release files

1.1

2 release files

1.0

2 release files

0.1.5.6

1 release file

0.1.5.5

1 release file

0.1.5.4

1 release file

0.1.5.3

1 release file

0.1.5.2

1 release file

0.1.5.1

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page