一键安装apipost
#!/bin/bash
URL=$(curl 'https://www.apipost.cn' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: zh-CN,zh;q=0.9' -H "${USER_AGENT[@]}" \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'Connection: keep-alive' \
-H 'DNT: 1' --compressed )
get=$(echo $URL | grep -Po -i '(downLoad_app)[^\n]+' | grep AMD | grep -i gz | awk -F '"' '{print $3}')
echo -e "--> 获取 下载链接 --> $get"
wget -cO apipost.tar.gz $get
mkdir $HOME/apipost
tar -xvf apipost.tar.gz -C $HOME/apipost