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
Import Notion Tasks to

Notion-to-Google-Calendar (1 way) Import Notion Tasks to Google Calendar NO MORE UPDATES WILL BE MADE TO THIS REPO. Attention has been put on a 2-way

12 Aug 11, 2022
A mass account list editor for python

Account-List-Editor This is an mass account list editor Usage Run the editor.py file with python (python3 ./editor.py) Press a button (1/2) and drag &

ExtremeDev 1 Dec 20, 2021
An automated bot for twitter using Tweepy!

Tweeby An automated bot for twitter using Tweepy! About This bot will look for tweets that contain certain hashtags, if found. It'll send them a messa

Ori 1 Dec 06, 2021
Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker.

Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker. Unlimited RajeLiker Credit Hack. Thanks To RajeLiker.

Md. Mehedi Hasan 32 Dec 28, 2022
🚀🔥使用Python连接阿里云盘, 实现了官方大部分功能 👍👍

aligo 🚀 🔥 使用Python连接阿里云盘, 实现了官方大部分功能 👍 👍 为了完善代码提示, 方便大家代码书写, aligo 引入了一些 python 3.8 的新特性, 所以要求 python = 3.8.* pip install aligo 或 pip install ali

455 Jan 08, 2023
M3U Playlist for free TV channels

Free TV This is an M3U playlist for free TV channels around the World. Either free locally (over the air): Or free on the Internet: Plex TV Pluto TV P

Free TV 964 Jan 08, 2023
A template / demo bot for the Halcyon matrix bot library

Halcyon stock bot Hello! This is an example / template bot using the halcyon matrix bot library. Feel free to ask questions in the matrix chat #halcyo

Wes Ring 1 Feb 04, 2022
A Discord bot that automatically saves SHSH blobs for all of your iOS devices.

AutoTSS AutoTSS is a Discord bot that automatically saves SHSH blobs for all of your iOS devices. Want a CLI automatic blob saver? Check out AutoTSS-c

adam 79 Dec 13, 2022
Easy Discord Webhook Token Grabber!

Easy Discord Webhook Token Grabber!

†† 27 Jun 01, 2022
The Fasted Proxyless Multi-Threaded Discord Call Crasher

Discord-Call-Crasher The Fasted Proxyless Multi-Threaded Discord Call Crasher (Created By Jonah) Requirements / Setting up There will be a few things

8ua 10 Jun 17, 2022
Collection of AWS Fault Injection Simulator (FIS) experiment templates.

Collection of AWS Fault Injection Simulator (FIS) experiment templates. These templates let you perform chaos engineering experiments on resources (applications, network, and infrastructure) in the A

Adrian Hornsby 8 Nov 27, 2022
A collection of scripts to steal BTC from Lightning Network enabled custodial services. Only for educational purpose! Share your findings only when design flaws are fixed.

Lightning Network Fee Siphoning Attack LN-fee-siphoning is a collection of scripts to subtract BTC from Lightning Network enabled custodial services b

Reckless_Satoshi 14 Oct 15, 2022
Query Amalgamator over StackOverflow and YouTube

QASY Query Amalgamator over StackOverflow and YouTube Decription A software you can use to save your valuable time of googling the errors you encounte

1 Nov 07, 2021
A visualization of people a user follows on Twitter

Twitter-Map This software allows the user to create maps of Twitter accounts. Installation git clone Oliver Greenwood 12 Jul 20, 2022

Python script to Funge NFTs.

Python script to Funge NFTs. It scrapes OpenSea for a given list of NFT collections and downloads a certain number of NFTs from each collection or the entire collections.

3 Apr 28, 2022
YuuScource - A Discord bot made with Pycord

Yuu A Discord bot made with Pycord Features Not much lol • Easy to use commands

kekda 9 Feb 17, 2022
Телеграм бот решающий задания ЦДЗ, написанный на библиотеке libmesh.

MESHBot-Telegram Телеграм бот решающий задания ЦДЗ. Описание: Бот написан с использованием библиотеки libmesh. Для начала работы отправьте ему ссылку

2 Jun 19, 2022
This is a simple bot that can be used to upload images to a third-party cloud (image hosting). Currently, only the imgbb.com website supports the bot. I Will do future updates

TGImageHosting This is a simple bot that can be used to upload images to a third party cloud (image hosting). Currently, only the imgbb.com website su

Abhijith N T 0 Dec 26, 2021
A Discord bot to easily and quickly format your JSON data

Invite PrettyJSON to your Discord server Table of contents About the project What is JSON? What is pretty printing? How to use Input options Command I

Sem 4 Jan 24, 2022
❤️ DaisyX 2.0 ❤️ A Powerful, Smart And Simple Group Manager ... Written with AioGram , Pyrogram and Telethon...

❤️ DaisyX 2.0 ❤️ A Powerful, Smart And Simple Group Manager ... Written with AioGram , Pyrogram and Telethon... ⭐️ Thanks to everyone who starred Dais

TeamOfDaisyX 44 Oct 06, 2022