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
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
Metadata
Release files for bank-of-ghana-fx-rates 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bank-of-ghana-fx-rates-0.1.10.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bank_of_ghana_fx_rates-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / bank-of-ghana-fx-rates-0.1.10.tar.gz
| Download URL | bank-of-ghana-fx-rates-0.1.10.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b926e0c05e73a3aa2315eae0c52f1fc8cc3994ceb3bb3eb203a06ba92d0c3863
|
|
BLAKE2b-256 checksum How to use checksums |
7de506acec99884e66e93782b004570bdf80630ad448c9b66661d5800945485c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / bank_of_ghana_fx_rates-0.1.10-py3-none-any.whl
| Download URL | bank_of_ghana_fx_rates-0.1.10-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffe375b76d339e7e10b18cd56e71fdc4917b204cca5a7bb473c71e4365bca02f
|
|
BLAKE2b-256 checksum How to use checksums |
f1934b1baf1bb5c751e4cfe99e0914cc287d97afd277be1b190f03caa405a3fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|