Thunder Account Fecther

From NAT, 6 Years ago, written in Bash, viewed 629 times.
URL https://code.nat.moe/view/34d09e3f Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. # Fetch Thunder VIP accoun
  3.  
  4. FORUM_URL='http://www.521xunlei.com/forum-xunleihuiyuan-1.html'
  5. PREFIX='http://www.521xunlei.com/'
  6.  
  7. function showAcct {
  8.         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/<br.*//g; s/<.*font.*//g'
  9. }
  10.  
  11. function getAcctPage {
  12.         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}')
  13. }
  14.  
  15. [[ -z $1 ]] && showAcct $(getAcctPage) || showAcct $1

Replies to Thunder Account Fecther rss

Title Name Language When
Thunder Account Fetcher - fix1 NAT bash 6 Years ago.

Reply to "Thunder Account Fecther"

Here you can reply to the paste above

captcha