Giter Club home page Giter Club logo

etherscraper's Introduction

etherScraper

Author: Jeet Chugh

etherScraper is a CLI program that finds an ethereum wallet's transactions using the etherscan.io API.

Features:

  • display ethereum network transactions onto the command line
  • View: blockHash, txnHash, time, sender, reciever, etherAmount
  • Lightweight, only uses requests, bs4, and datetime

Dependencies: bs4, requests

Code License: MIT

Documentation


'etherScraper' Class:

etherScraper takes in WALLET_ADDRESS and API_KEY, and returns a list of Transaction objects. Import: in the same directory --> from etherScraper import etherScraper Instantiation: wallet1 = etherScraper(WALLET_ADDRESS, API_KEY)

'etherScraper' Method:



wallet1.getData() returns a list of Transaction objects pertaining to the originally inputted WALLET_ADDRESS. Make sure to run main.py to have a better understanding of how the etherScraper(WALLET_ADDRESS, API_KEY).getData() method works.


'Transaction' Class:

The Transaction keeps txData organized in one object. Import: from etherScraper import Transaction let tx be an instantiation of Transaction, in this example.

'Transaction' Attrbutes:


tx.blockHash stores the block hash of the transaction.

tx.txnHash stores the transaction hash of the transaction.

tx.time stores a datetime object of the timestamp of the transaction. Can be converted to string by the datetime.datetime.sfrtime() method.

tx.sender stores the Wallet Address of the sender in the transaction.


tx.receiver stores the Wallet Address of the receiver in the transaction.


tx.etherAmount In the case that the transaction is in Ether, it stores the amount of Ether transferred.

Thank you for reading the documentation. Feel free to submit issues to the repository URL listed above.

etherscraper's People

Contributors

jeet-chugh avatar

Watchers

James Cloos 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.