Thunder Account Fetcher - fix1

From NAT, 6 Years ago, written in Bash, viewed 789 times. This paste is a reply to Thunder Account Fecther from NAT - go back
URL https://code.nat.moe/view/29f11405/diff Embed
Viewing differences between Thunder Account Fecther and Thunder Account Fetcher - fix1
#!/bin/bash
# Fetch Thunder VIP accoun

FORUM_URL='http://www.521xunlei.com/forum-xunleihuiyuan-1.html'
PREFIX='http://www.521xunlei.com/'

function showAcct {
        curl $1 2> /dev/null | iconv -f gbk -t utf-8 | grep -E '???|????' | grep br | awk -F"??|??|??|??" '{print $3,$4,$5}' | sed -e 's/..??/ |/g; 's/??/ /g; s/<br.*//g; s/<.*font.*//g'
*//g; s/???.*\|??\|????\|??\|?\|?.*//g; '
}

function getAcctPage {
        echo $PREFIX$(curl $FORUM_URL 2> /dev/null | iconv -f gbk -t utf-8 | grep "s xst" | head -n2 | tail -n1 | awk -F\" '{print $2}')
}

[[ -z $1 ]] && showAcct $(getAcctPage) || showAcct $1

Reply to "Thunder Account Fetcher - fix1"

Here you can reply to the paste above

captcha