This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from web3 import Web3 | |
import requests | |
YOUR_C_CHAIN_ADDRESS = "" | |
# Get the ABI from somewhere like here: https://cchain.explorer.avax.network/address/0xA544b965C2a05b97C44f3126cec916332aFb3175/contracts | |
YAK_ABI = "" | |
ERC20_ABI = "" | |
w3 = Web3(Web3.HTTPProvider("https://api.avax.network/ext/bc/C/rpc")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk add py3-pip | |
pip3 install youtube-dl | |
# download video | |
youtube-dl --no-check-certificate link | |
# run in background | |
youtube-dl --no-check-certificate -q link & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
# you can do this all in one command | |
wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static | |
apk add python3 |