国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

腳本之家,腳本語言編程技術及教程分享平臺!
分類導航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|

服務器之家 - 腳本之家 - VBS - bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼

bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼

2020-08-05 10:36VBS代碼網 VBS

bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼,類似小偷程序,通過正則匹配,雖然現在已經無法使用,但代碼不錯,原理都有

核心代碼:

復制代碼 代碼如下:


If WScript.Arguments.UnNamed.Count <> 1 Then Syntax
If WScript.Arguments.Named.Count > 1 Then Syntax
blnTd = False
If WScript.Arguments.Named.Count = 1 Then
If UCase( WScript.Arguments.Named( 0 ) ) = "/TD" Then
blnTd = True
Else
Syntax
End If
End If
strISBN = WScript.Arguments.UnNamed( 0 )
strPgTitle = TitleFromHTML( "http://www.amazon.com/gp/product/" & strISBN & "/" )
strPattern = "Amazon.com: (.*): Books: (.*)$"
strTitle = RegExpVal( strPattern, strPgTitle, 0 )
strAuthor = RegExpVal( strPattern, strPgTitle, 1 )
If blnTd Then
strMsg = strISBN & vbTab & strTitle & vbTab & strAuthor & vbCrLf
Else
strMsg = vbCrLf & "Title : " & strTitle _
& vbCrLf & "Author : " & strAuthor _
& vbCrLf & "ISBN : " & strISBN
End If
WScript.Echo strMsg
Function RegExpVal( strPattern, strString, idx )
On Error Resume Next
Dim regEx, Match, Matches, RetStr
Set regEx = New RegExp
regEx.Pattern = strPattern
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute( strString )
RegExpVal = Matches( 0 ).SubMatches( idx )
End Function
Function TitleFromHTML( strURL )
Set ie = CreateObject( "InternetExplorer.Application" )
ie.Navigate strURL
Do Until ie.ReadyState = 4
WScript.Sleep 10
Loop
TitleFromHTML = ie.Document.Title
ie.Quit
End Function
Sub Syntax
strMsg = strMsg & vbCrLf & "BookFind.vbs, Version 1.11" & vbCrLf _
& "Display book title and author name for the specified ISBN number." & vbCrLf & vbCrLf _
& "Usage: CSCRIPT //NOLOGO BOOKFIND.VBS isbn [ /TD ]" & vbCrLf & vbCrLf _
& "Where: ""isbn"" is the ISBN (or ASIN) of the book to search for" & vbCrLf _
& " /TD changes the output format to tab delimited" & vbCrLf & vbCrLf _
& "Note: This script uses Amazon's web site to look up author and title." & vbCrLf _
& " To be precise, the data is extracted from the title of the page" & vbCrLf _
& " with URL http://www.amazon.com/gp/product/ followed by the ISBN." & vbCrLf _
& " That means this script will fail when Amazon changes the URLs." & vbCrLf & vbCrLf _
& "Written by Rob van der Woude" & vbCrLf _
& "http://www.robvanderwoude.com"
Wscript.Echo( strMsg )
Wscript.Quit( 1 )
End Sub


使用方法:
CSCRIPT //NOLOGO BOOKFIND.VBS isbn [ /TD ]
Where: "isbn" is the ISBN (or ASIN) of the book to search for
/TD changes the output format to tab delimited
Note: This script uses Amazon's web site to look up author and title.
To be precise, the data is extracted from the title of the page
with URL http://www.amazon.com/gp/product/ followed by the ISBN.
That means this script will fail when Amazon changes the URLs.

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 国产精品久久久久国产a级 国产免费久久 | 亚洲欧美一区二区三区在线 | 国产乱码精品一区二区三区av | 亚洲欧美日韩精品久久亚洲区 | 99精品国产一区二区三区 | 国产精品免费看 | 久久影院一区 | 视频1区 | 欧美日韩一区二区视频在线观看 | 久久精品成人一区二区三区蜜臀 | 亚洲视频 欧美视频 | 综合久久久久 | 国产电影一区二区三区图片 | 国产黄色精品 | 午夜男人| 丝袜+亚洲+另类+欧美+变态 | 精品视频久久久 | 中文字幕一区二区三区精彩视频 | 欧美成人影院 | 91久久精品视频 | 一级欧美一级日韩 | 久草中文在线 | 国产男人天堂 | 国产精品久久国产精品 | 久久久国产精品入口麻豆 | 国产91对白叫床清晰播放 | 午夜精品在线观看 | 伦一区二区三区中文字幕v亚洲 | 亚洲精品欧美在线 | 久久精品国产v日韩v亚洲 | 久久国内 | 国产精品亚洲综合 | 精品久久亚洲 | 成人av一区二区亚洲精 | 亚洲欧洲一区二区三区 | 午夜视频网 | 久久精品一 | 国产一区二区三区四 | 国产成人精品一区二区三区网站观看 | 欧美精品在线看 | 激情婷婷|