ApiMoedas - This API is a extesion of API

Overview

🪙 Api Moeda 🪙

Este projeto é uma extensão da API Awesome API. Basicamente, ele mostra todas as moedas que a Awesome API tem e todas as suas conversões possíveis de serem utilizadas, além de mostrar o país de cada moeda.

🧑‍💻 Tecnologias utilizadas 🧑‍💻

  • Python 3.8
  • Selenium
  • BeautifulSoup
  • pandas
  • Json
  • Flask

Scrapy das páginas

Foi realizado o Scraping de ambas as páginas para se obter as seguintes informações:

  • Código da Moeda
  • Nome do País a que se refere
  • Código da Conversão entre duas moedas distintas
  • Nome por extenso dessa operação
  1. Como usar

    • Fazendo uma requisição:
import requests as r

#Pegar os tipos de moedas
dados_moedas = r.get("http://apimoeda.herokuapp.com/moedas")

#Pegar os tipos de conversões
dados_conversões =  r.get("http://apimoeda.herokuapp.com/conversao")
  1. Manipulando o arquivo em formato json

    • Fazendo a conversão:
import json
dict_moedas = dados_moedas.json()
dict_conversoes = dados_conversões.json()
  1. Obtendo os valores e chaves:

for i in dict_moedas['Tipo da moeda']:
    for key, value in i.items():
        print(key,value)

for i in dict_conversoes['Tipo de conversao']:
    for key, value in i.items():
        print(key,value)
  1. Criando uma tabela de forma estruturada

import pandas as pd
#Pegando os valores de cada dicionário
values = [value.values() for value in dict_moedas['Tipo da moeda']]
#Pegando as chaves de cada dicionário
keys = [key.keys() for key in dict_moedas['Tipo da moeda']]

df = pd.DataFrame(values, index=keys, columns=['Cód Moeda', "País"])
print(df)
  1. Resultado

  • Para o caso de Moedas
Cód Moeda País
(Cod_da_moeda, Paises) AFN Afghani do Afeganistao
(Cod_da_moeda, Paises) MGA Ariary Madagascarense
(Cod_da_moeda, Paises) THB Baht Tailandes
(Cod_da_moeda, Paises) PAB Balboa Panamenho
(Cod_da_moeda, Paises) ETB Birr Etiope
... ... ...
(Cod_da_moeda, Paises) XAGG XPrata
(Cod_da_moeda, Paises) XRP XRP
(Cod_da_moeda, Paises) CNY Yuan Chines
(Cod_da_moeda, Paises) CNH Yuan chines offshore
(Cod_da_moeda, Paises) PLN Zloti Polones

[155 rows x 2 columns]

Feito por

Abel ❤️

Minhas Rede Sociais:

Owner
Abel
Desde que aprendi estatística na faculdade decidi me aventurar em Data Science.
Abel
Instagram-Reports is a tool made to ban any scam or bad person

ABOUT TOOL : Instagram-Reports is a tool made to ban any scam or bad person. Installation : sudo apt-get update -y sudo apt-get upgrade -y apt insta

Evan Al Mahmud Irfan ථ 1 Dec 20, 2021
Lol qq parser - A League of Legends parser for QQ data

lol_qq_parser A League of Legends parser for QQ data Sources This package relies

Tolki 3 Jul 13, 2022
My homeserver setup. Everything managed securely using Portainer.

homeserver-traefik-portainer Features: access all services with free TLS from letsencrypt using your own domain running a side project is super simple

Tomasz Wójcik 44 Jan 03, 2023
An open-source Discord Bot Project based on programming!

An open-source Discord Bot Project based on programming!

Vladimer Moore 2 Aug 22, 2022
This repository contains code written in the AWS Cloud Development Kit (CDK)

This repository contains code written in the AWS Cloud Development Kit (CDK) which launches infrastructure across two different regions to demonstrate using AWS AppSync in a multi-region setup.

AWS Samples 5 Jun 03, 2022
Algofi Python SDK is useful for developers who want to programatically interact with the Algofi lending protocol

algofi-py-sdk Algofi Python SDK Documentation https://algofi-py-sdk.readthedocs.

Algofi 41 Dec 15, 2022
A collective list of free APIs for use in software and web development.

Public APIs A collective list of free APIs for use in software and web development. A public API for this project can be found here! For information o

222.5k Jan 02, 2023
Ts-matterbridge - Integrate TeamSpeak Chat with MatterBridge

TeamSpeak-MatterBridge Bot You can use this bot to integrate TeamSpeak Chat with

4 Sep 25, 2022
An API wrapper for discord; maintained and improved from discord.py

Fusion.py Documentation What is Fusion.py you might ask; Fusion.py is a Discord.py fork that has most of the good features from most of the big Discor

Senarc Studios 5 Apr 19, 2022
A pre-attack hacker tool which aims to find out sensitives comments in HTML comment tag and to help on reconnaissance process

Find Out in Comment Find sensetive comment out in HTML ⚈ About This is a pre-attack hacker tool that searches for sensitives words in HTML comments ta

Pablo Emídio S.S 8 Dec 31, 2022
Python Library for Secp256k1 Bitcoin curve to do fast ECC calculation

secp256k1 Python Library for Secp256k1 Bitcoin curve to do fast ECC calculation Example Usage import secp256k1 as ice print('[C]',privatekey_to_addres

iceland 49 Jan 01, 2023
Tickergram is a Telegram bot to look up quotes, charts, general market sentiment and more.

Tickergram is a Telegram bot to look up quotes, charts, general market sentiment and more.

Alberto Ortega 25 Nov 26, 2022
A python script for hitting the kik API to enumerate people based on a username/userlist

kick3d Recon script for enumerating users off of the Kik API. This script has the ability to check single usernames or run through a userlist of usern

Sakura Samurai 19 Oct 04, 2021
Savecontentbot - Telegram Save Content Bot With Same more Features

Save Restricted Content Bot A simple telegram bot to save restricted content wit

Group Dc Bots 3 Jan 26, 2022
Student-Management-System-in-Python - Student Management System in Python

Student-Management-System-in-Python Student Management System in Python

G.Niruthian 3 Jan 01, 2022
bot for hearthstone mercenaries

Hearthstone-Mercenaries-game-bot - prevention: Bot is not ready and now on the development stage estimated release date - 21.10.21 The main idea of th

Andrew Efimov 59 Dec 12, 2022
Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single bot.

Discord ToolBox Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single b

3 Aug 07, 2021
A bot to playing music in telegram vcg

Idzeroid Music|| Idzeroid Music adalah sebuah repository music bot telegram untuk memainkan suara di voice chat group anda. Fyi This repo im using for

idzeroid 1 Oct 26, 2021
Open API to list Viet Nam administrative divisions

Viet Nam province API Homepage: https://provinces.open-api.vn This is online tool to let my VietnamProvinces library reach more users. VietnamProvince

Nguyễn Hồng Quân 52 Dec 05, 2022
Sync mastodon toot and Telegram channel or group in both direction.

Sync mastodon toot and telegram channel or group in both direction.

Littlebear0729 7 Dec 18, 2022