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
Google Translater v2

Google_Translater_V2 Features Supporting 100 More Languages You can Set Your Custom Languages Supporting in Group Configs TG_BOT_TOKEN - Get bot token

Lntechnical 31 Nov 12, 2022
Discord Multitool made in python 3.9

XTool Discord Multitool 24 Features: Webhook Delete VC Lagger Fast Token Checker Mass Report [Not Done] Token rape 2K Characters Bypass Block bypass M

Tiie 50 Dec 20, 2022
Python binding for Microsoft LightGBM

pyLightGBM: python binding for Microsoft LightGBM Features: Regression, Classification (binary, multi class) Feature importance (clf.feature_importanc

Ardalan 330 Nov 18, 2022
GUI Pancakeswap V2 and Uniswap V3 trading client (and bot)MOST ADVANCE TRADING BOT SUPPORT WINDOWS LINUX MAC

GUI Pancakeswap 2 and Uniswap 3 trading client (and bot) (MOST ADVANCE TRADING BOT SUPPORT WINDOWS LINUX MAC) UPDATE: MUTI TRADE TOKEN ENABLE ,TRADE 1

2 Dec 27, 2021
Minecraft name sniper written in python.

⚠️ IMPORTANT ⚠️ DO NOT USE MCSNIPERPY -- READ BELOW This sniper does not support Microsoft accounts or prename / gc sniping and is MUCH harder to use

MCsniperPY 201 Dec 30, 2022
A Terminal User Interface (TUI) for automated trading with Komodo Platform's AtomicDEX-API

PytomicDEX Makerbot A Terminal User Interface (TUI) for automated trading with Komodo Platform's AtomicDEX-API Install sudo apt install wget curl jq g

6 Aug 25, 2022
SmsSender v3.0.0 - the script is designed to send free SMS to any number and with any text.

SmsSender v3.0.0 - скрипт предназначен для бесплатной отправки SMS на любой номер и с любым текстом. Возможны небольшие баги, в скором времени исправл

Андрей Сергеев 20 Dec 03, 2021
This is a simple collection of instructions and scripts to accompany the computerphile video about mininet and openflow.

How to get going. This project should work on Linux or MacOS. I used Ubuntu 20.04 and provide some notes here. Note, this is certainly not intended as

Richard G. Clegg 70 Jan 02, 2023
Senditapp.com bot spammer, spam your friends

Sendit Spammer Python ⚠️ I am not responsible for how you use this tool. This tool is against "Sendit" ToS and shall not be used in a production envir

Glaukio 1 Dec 31, 2021
Some 3Commas helper bots, AltRank, GalaxyScore, Watchlist, Auto-Compound

3Commas Cyber Bot Helpers A collection of 3Commas bot helpers I wrote. (collection will grow over time) Disclaimer THE SOFTWARE IS PROVIDED "AS IS", W

Ron Klinkien 176 Jan 02, 2023
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

🏆 Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) 🥇 ⭐️ ⭐️ ⭐️ First SNIPER BOT for ANDROID & WINDOWS with honeypot

HYDRA 2 Dec 24, 2021
As Slack no longer provides an API to invite people, this is a Selenium Python script to do so

As Slack no longer provides an API to invite people, this is a Selenium Python script to do so

A discord bot wrapper for python have slash command

A discord bot wrapper for python have slash command

4 Dec 04, 2021
The most expensive version of Conway's Game of Life - running on the Ethereum Blockchain

GameOfLife The most expensive implementation of Conway's Game of Life ever - over $2,000 per step! (Probably the slowest too!) Conway's Game of Life r

75 Nov 26, 2022
Wordy is a Wordle-like Discord bot but with a twist.

Wordy Discord Bot Wordy is a Wordle-like Discord bot but with a twist. It already supports 6 languages from the beginning: English, Italian, French, G

The Coding Channel 2 Sep 06, 2022
Autofill HZDR Zeitman entries

Zeitman_autofill Filling out Zeitman is boring. This script might make some of the pain go away. Requirements The selenium package and Chrome webdrive

Tim Callow 8 Mar 14, 2022
This Python script will automate the process of uploading your project to GitHub.

ProjectToGithub This Python script will help you to upload your project to Github without having to type in any commands !!! Quick Start guide First C

Imira Randeniya 1 Sep 11, 2022
✨ 🐍 Python SDK for StarkNet.

✨ 🐍 starknet.py StarkNet SDK for Python 📘 Documentation Installation Quickstart Guide API Installation To install this package run pip install stark

Software Mansion 158 Jan 04, 2023
Userbot Telegram dengan Telethon

FLICKS - UBOT Repo FLICKS UBOT Repo Yang Dibuat Oleh Rizzz Dari beberapa Repo Yang Ada Di Github. Generate String Using Replit ⤵️ DEPLOY TO HEROKU Sup

FJ_GAMING 14 May 16, 2022
Tiktok-bot - A Simple Tiktok bot With Python

Install the requirements pip install selenium pip install pyfiglet==0.7.5 How ca

Muchlis Faroqi 5 Aug 23, 2022