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
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)
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.
The Transaction keeps txData organized in one object. Import: from etherScraper import Transaction let tx be an instantiation of Transaction, in this example.
tx.time stores a datetime object of the timestamp of the transaction. Can be converted to string by the datetime.datetime.sfrtime() method.
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.