bank-of-ghana-fx-rates 0.1.10

Creator: codyrutscher

Last updated:

Add to Cart

Description:

bankofghanafxrates 0.1.10

Bank of Ghana Exchange Rate Python Library
A simple unofficial python package to scrape data bank of Ghana.
Affiliated to GhanaNews-Scraper and
GhanaShops-Scraper
Overview
The unofficial Python API client library for Bank of Ghana allows individuals to pull historical and real-time exchange rates data using the Python programming language.
Learn more by visiting BoG
Example Google Colab Notebook
Click Here:
Installation
pip install bank-of-ghana-fx-rates

Python Usage:
from bog.scraper import GhanaRates

urls = [
'https://www.bog.gov.gh/treasury-and-the-markets/historical-interbank-fx-rates/',
'https://www.bog.gov.gh/treasury-and-the-markets/treasury-bill-rates/',
]
for page_url in urls:
print(f"Downloading from : {page_url}")
fx = GhanaRates(url = page_url)
# download data
fx.download()

# get info
fx.get_info()

CLI Usage:
bog-fx --url 'https://www.bog.gov.gh/treasury-and-the-markets/historical-interbank-fx-rates/'

BuyMeCoffee

Credits

Theophilus Siameh

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.