GithubHelp home page GithubHelp logo

joelibaceta / uf_scrapper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

UFScrapper is an API that allows you to retrieve the value of the Unidad de Fomento (UF) based on the information published on the website of the Chilean Internal Revenue Service (SII)

License: MIT License

Python 95.20% Dockerfile 4.80%
scrapping sii uf

uf_scrapper's Introduction

UFScrapper

UFScrapper is an API that allows you to retrieve the value of the Unidad de Fomento (UF) based on the information published on the website of the Chilean Internal Revenue Service (SII). The API is written in Flask to optimize the resources needed for its operation.

Getting Started

In order to use UFScrapper, you will need to have Python 3 and Flask installed on your system. Once you have these dependencies installed, you can clone the repository and start using the API.

Usage

To use the UFScrapper API, simply make a GET request to the endpoint with the date you want to retrieve the UF value, this value should be passed using query params in order to avoid date format issues. For example, to retrieve the UF value for May 8, 2021, you would make a GET request to:

http://127.0.0.1:5000/uf?year=2021&month=5&day=8

The API will return a JSON object with the UF value for the specified date. If the specified date is not available on the SII website, the API will return an error message.

{
    "data": {
        "uf_value": 29525.55
    },
    "status": "success"
}

Running with Docker

docker build -t uf_flask-app . 
docker run -it --rm -p 5000:5000 --name uf_flask-container -d uf_flask-app 

uf_scrapper's People

Contributors

joelibaceta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.