婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼

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

熱門標簽:海外美發店地圖標注 打電話的外呼系統貴不貴 前鋒辦理400電話申請 新密防封卡外呼系統違法嗎 辦理膠州400電話財稅 加盟電銷機器人好的品牌 百度地圖標注怎么卸載 外呼營銷下單系統 陜西高頻外呼回撥系統哪家好
核心代碼:
復制代碼 代碼如下:

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.
您可能感興趣的文章:
  • javascript字符串與數組轉換匯總
  • Javascript進制轉換實例分析
  • Javascript實現顏色rgb與16進制轉換的方法
  • JavaScript轉換二進制編碼為ASCII碼的方法
  • JavaScript將字符串轉換為整數的方法
  • php根據isbn書號查詢amazon網站上的圖書信息的示例
  • PHP校驗ISBN碼的函數代碼
  • JavaScript實現將UPC轉換成ISBN的方法

標簽:梅州 河南 伊春 牡丹江 四平 武威 阜陽 咸陽

巨人網絡通訊聲明:本文標題《bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼》,本文關鍵詞  bookfind,通過,ISBN,序號,獲取,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼》相關的同類信息!
  • 本頁收集關于bookfind 通過ISBN序號獲取圖書連接的書名與作者的vbs代碼的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 淳化县| 屯留县| 宁阳县| 尼玛县| 嘉义市| 全南县| 会昌县| 庆城县| 星子县| 孟津县| 雅安市| 田林县| 溧阳市| 洛扎县| 温州市| 阳谷县| 宁武县| 荃湾区| 兰州市| 登封市| 隆昌县| 敦化市| 靖宇县| 莎车县| 马公市| 牡丹江市| 祁阳县| 涞水县| 孟连| 鄂尔多斯市| 宜昌市| 综艺| 盐城市| 靖江市| 贵德县| 阳泉市| 黄石市| 饶平县| 茌平县| 云霄县| 渝中区|