Coder Social home page Coder Social logo

currency_repo's Introduction

Currency Rates Fetcher

This project fetches currency rates from various APIs and stores them in a JSON file. It uses both a Go script and a Bash script to fetch and process the data.

Project Structure

  • .github/workflows/: Contains GitHub Actions workflows for running the scripts and committing the results.
  • currency_all/: Directory where the JSON file with the currency rates is stored.
  • src/: Contains the source code for the scripts.

Scripts

  • bash-script-bi.sh: A Bash script that fetches data from the Banco Industrial API and stores it in a JSON file.
  • main.go: A Go script that fetches data from various currency APIs and stores the results in a JSON file.

GitHub Actions

There are two workflows defined in this project:

  • bash.yml: This workflow runs the Bash script every 6 hours and commits the resulting JSON file to the repository.
  • main.yml: This workflow runs the Go script every 12 hours and commits any changes to the repository.

Running the Scripts

To run the Bash script, use the following command:

bash ./src/bash-script-bi.sh > ./currency_all/tipo_de_cambio_bi.json

To run the Go script, use the following command:

go run ./src/main.go

Please note that you need to have bash, curl, jq, and go installed on your system to run these scripts.

Contributing

Contributions are welcome. Please open an issue or submit a pull request if you have any improvements or features to suggest.

currency_repo's People

Contributors

actions-user avatar luispagarcia 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.