本帖最后由 pcl_test 于 2016-11-17 23:29 编辑
- rem win7及以上系统运行
- set "url=http://pmmp.cnki.net/OperatingDiscipline/Details.aspx?id="
- powershell -c "Add-Type -AssemblyName System.Web;$web=New-Object Net.WebClient;$web.Encoding=[Text.Encoding]::utf8;1..2150|%%{$htmltext=$web.DownloadString('%url%'+('{0:d4}' -f $_));if($htmltext -match '[^\"]+(?=\">全文下载)'){[Web.HttpUtility]::UrlDecode(''+$_+' '+$matches[0])}}"
- pause
复制代码
|