PowerShell:搜索Winos.cn站内数据

来源:互联网 发布:php soap 传json 编辑:程序博客网 时间:2024/04/30 02:05

注:本篇文章,未在联系作者以及得到许可的情况下, 禁止以任何形式进行转载。

By:Anders      Mail:katrina520@163.com       

  • 运行此脚本,键入搜索关键字,打开搜索结果页面

脚本内容如下:

#========================搜索============================
Write
-Host -foregroundColor "Yellow" -backgroundColor "Red"("-" * 23
Write
-Host "请键入你要搜索的关键字:" -foregroundcolor "Red" -backgroundcolor "Yellow"
Write
-Host -foregroundColor "Yellow" -backgroundColor "Red"("-" * 23)
$Search
=Read-Host
$IE 
= New-Object -ComObject InternetExplorer.Application
$IE.Navigate(
"http://www.google.cn/custom?domains=winos.cn&q= $Search &sitesearch=winos.cn&=zh-CN")

执行搜索:

运行结果如下:

 

 
原创粉丝点击