Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bank-of-ghana-fx-rates

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bank-of-ghana-fx-rates

A python client library used to extract the exchange rates of Bank of Ghana into CSV

  • 0.1.10
  • PyPI
  • Socket score

Maintainers
1

Python 3.7, 3.8, 3.9 Imports: isort

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: 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

Build

Credits

  • Theophilus Siameh
tsiameh twitter

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc