热播影视的批量下载Shell脚本

2019年12月20日

这个是某个网友给的源文件里的,请原谅这里不放出地址了,只是给一些朋友们离线到自己服务器上就可以了。所以这个地址不放出来,只放一个源码的思路。见谅。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# !/bin/bash
touch qynzui.txt
touch qynok.txt
touch qynxia.txt
url=""
page=$(curl -s "${url}"|grep -E "zuida|okzy|okdown|xiazaikuyun")
arr=(${page})
for i in ${arr[@]}
do
ii=$(echo $i | awk -F "href=\"" '{ print $2 }'|awk -F "\"" '{ print $1 }')
zui=$(echo $ii | grep -E "zuida")
if [[ ${ii} = ${zui} ]]; then
echo -e $ii | sed '/^\s*$/d' >> qynzui.txt
fi
xzo=$(echo $ii | grep -E "okdown|okzy")
if [[ ${ii} = ${zui} ]]; then
echo -e $ii | sed '/^\s*$/d' >> qynok.txt
fi
xia=$(echo $ii | grep -E "xiazaikuyun")
if [[ ${ii} = ${xia} ]]; then
echo -e $ii | sed '/^\s*$/d' >> qynxia.txt
fi
done
#wget -i qynzui.txt
#wget -i qynok.txt
#wget -i qynxia.txt
# !/bin/bash touch qynzui.txt touch qynok.txt touch qynxia.txt url="" page=$(curl -s "${url}"|grep -E "zuida|okzy|okdown|xiazaikuyun") arr=(${page}) for i in ${arr[@]} do ii=$(echo $i | awk -F "href=\"" '{ print $2 }'|awk -F "\"" '{ print $1 }') zui=$(echo $ii | grep -E "zuida") if [[ ${ii} = ${zui} ]]; then echo -e $ii | sed '/^\s*$/d' >> qynzui.txt fi xzo=$(echo $ii | grep -E "okdown|okzy") if [[ ${ii} = ${zui} ]]; then echo -e $ii | sed '/^\s*$/d' >> qynok.txt fi xia=$(echo $ii | grep -E "xiazaikuyun") if [[ ${ii} = ${xia} ]]; then echo -e $ii | sed '/^\s*$/d' >> qynxia.txt fi done #wget -i qynzui.txt #wget -i qynok.txt #wget -i qynxia.txt
# !/bin/bash
   touch qynzui.txt
   touch qynok.txt
   touch qynxia.txt
  url=""
  page=$(curl -s "${url}"|grep -E "zuida|okzy|okdown|xiazaikuyun")
  arr=(${page})
    for i in ${arr[@]}
    do
    ii=$(echo $i | awk -F "href=\"" '{ print $2 }'|awk -F "\"" '{ print $1 }')
       zui=$(echo $ii | grep -E "zuida")
         if [[ ${ii} = ${zui} ]]; then
              echo -e $ii | sed '/^\s*$/d' >> qynzui.txt
         fi
       xzo=$(echo $ii | grep -E "okdown|okzy")
         if [[ ${ii} = ${zui} ]]; then
              echo -e $ii | sed '/^\s*$/d' >> qynok.txt
         fi
       xia=$(echo $ii | grep -E "xiazaikuyun")
         if [[ ${ii} = ${xia} ]]; then
              echo -e $ii | sed '/^\s*$/d' >> qynxia.txt
         fi
    done
#wget -i qynzui.txt
#wget -i qynok.txt
#wget -i qynxia.txt

 


sicnature ---------------------------------------------------------------------
I P 地 址: 18.224.70.160
区 域 位 置: 美国俄亥俄
系 统 信 息: 美国
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com/post/3066.html

1 评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注