import requests
from decimal import Decimal

address = "0x0110dd918f679bf94373bf03202eb0fcccba6495"
number_transactions = 100
url = "http://api.etherscan.io/api?module=account&action=txlist&address=" + address + \
      "&startblock=0&endblock=99999999&page=1&offset=" + str(number_transactions) + "&sort=desc&apikey=YourApiKeyToken"

response = requests.get(url)

address_content = response.json()
print(address_content)

result = address_content.get("result")

for n, transaction in enumerate(result):
    hash = transaction.get("hash")
    tx_from = transaction.get("from")
    tx_to = transaction.get("to")
    value = transaction.get("value")
    confirmations = transaction.get("confirmations")

    print("Transaction ID: ", n)
    print("hash: ", hash)
    print("from: ", tx_from)
    print("to: ", tx_to)

    if tx_from == address:
        print("Sending")
    else:
        print("Receiving")

    print("value: ", value)

    eth_value = Decimal(value)/ Decimal("1000000000000000000")
    print("Eth Value: ", eth_value)

    print("confirmations: ", confirmations)

    if int(confirmations) >= 16:
        print("Confirmed")
    else:
        print("Pending")

    print("\n")