Various python scripts for scraping the Ethereum Blockchain either by interacting with a local Ethereum node or web APIs.
Information about the events supported currently can be seen in the corresponding modules src/events/<protocol_name>_events.py.
-
First define your parameters (like
START/END_BLOCK,EVENT_NAME,FILEPATH, etc.) by editingsrc/run_query.py -
Either choose from the provided
EVENTSor provide your own event signature for filtering. -
Then save and run
python src/run_query.py -
Corresponding result will be saved in
FILEPATH.csv files.
src/analysis.py module provides an interactive way to analyze the event .csv files cell-by-cell (like Jupyter Notebooks).
In the src/apis folder there are scripts for interacting with various Ethereum APIs for extracting different information.
These scripts currently provide ways for retrieving information regarding:
- Getting all transactions for a single address
- Retrieving marketcap for specific token
- Retrieving info for specific token
- Getting history of total crypto market cap
Simply just edit these scripts with your own arguments and run them with python src/scripts/<script_name>.py.