Parses BCV html to get prices of currencies in VEF
Project description
bcv-api
bcv-api is a small (fast ?) python library that connects to
BCV to parse html and get the current price of
currencies in VEF.
Requeriments
- python3 >= 3.9
- urllib and typing (standard libraries)
Using bcv-api
# importing BCV and creating object.
from bcv_api import BCV
bcv_con = BCV()
# Get a currency
eur = bcv_con.currencies[0]
print(eur, bcv_con.get_currency(eur))
# Get all currencies
for currency, price in bcv_con.get_currencies().items():
print(currency, price)
# Use last html saved by get_currencies() to not use internet in this query.
cny = bcv_con.currencies[1]
print(cny, bcv_con.get_currency(cny))
Installation
You can install BCV-api from Pypi
pip install bcv-api
Made by Sivefunc
Licensed under GPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bcv_api-1.0.0.tar.gz
(15.4 kB
view hashes)
Built Distribution
bcv_api-1.0.0-py3-none-any.whl
(16.4 kB
view hashes)