zoukankan      html  css  js  c++  java
  • 快手视频下载脚本

    @echo off
    set url=%*
    if not defined url (
      echo input kuaishou url.
      echo   Usage: %0 "url"
      exit/b
    )
    wget %* -O kuai.html
    cat kuai.html|grep -Eio "<video(.*)</video>"|grep -Eio "poster=(.*).jpg">temp.txt
    sed -i "s/poster="//g" temp.txt
    sed -i "s/jpg/mp4/g" temp.txt
    cat temp.txt
    for /f "delims=" %%i in ('cat temp.txt') do set urlmp4=%%i
    echo %urlmp4%
    
    set outfn=%date%_%time:~0,8%.mp4
    set outfn=%outfn::=.%
    wget %urlmp4% -O "%outfn%"
    
    del temp.txt
    del kuai.html
    
  • 相关阅读:
    hud 1397
    hdu 1211
    hdu 1124
    hdu 1104
    1788
    hdu 1796
    sdut 2169
    hdu 1019
    $http post 取不到数据
    sql
  • 原文地址:https://www.cnblogs.com/nlsoft/p/6768412.html
Copyright © 2011-2022 走看看