Skip to content

A scraper that gets rates for the pair PEN/USD in different online exchange houses.

Notifications You must be signed in to change notification settings

Ed1123/dollar-price-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dollar Price

Dollar Price is a scraper for the USD/PEN exchange pair. It can work as a cli app or as an API with docker.

Installation

git clone https://github.com/Ed1123/dollar-price.git
cd dollar-price
pip install -r requirements.txt

Run API server

uvicorn main:app [--reload]

Access rates in: http://127.0.0.1:8000/rates Access documentation in: http://127.0.0.1:8000/docs

Run locally

python3 -m dollar_price

Test

pytest

Deploy with deta.sh

  1. Create a deta account in https://web.deta.sh/
  2. Install deta with:
curl -fsSL https://get.deta.dev/cli.sh | sh
  1. Login through the terminal
deta login
  1. Create a project in the deta website
  2. Deploy with
deta new --python --name dollar-api .

About

A scraper that gets rates for the pair PEN/USD in different online exchange houses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages