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

服務器之家:專注于服務器技術及軟件下載分享
分類導航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務器之家 - 編程語言 - ASP教程 - 可以查詢google排名的asp源碼

可以查詢google排名的asp源碼

2019-10-23 12:19asp代碼網 ASP教程

可以查詢google排名的asp源碼,需要的朋友可以參考一下.

以下是源碼,請命名為.ASP文件. 

復制代碼代碼如下:


<meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
<%  
if request("action") = "1" then  
 word = request("word")  
 url = request("url")  
 if word <> "" then  
  getCategories()  

  if url <> "" then  
   getCategories2()  
  end if  
 end if  
end if  

Function getCategories()  

response.write("<b>'"&word&"' 關鍵詞在Google搜索排名中,前10位網站!</b><br>")  

on error resume next  
Dim oXMLHTTP   
Dim oCategories   
Dim BodyText  
Dim Pos,Pos1  
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")  
http = "http://www.google.com/search?q="&word&"&hl=zh-CN"  
oXMLHTTP.open "GET",http,False    
oXMLHTTP.send   

 BodyText=oXMLHTTP.responsebody  
 BodyText=BytesToBstr(BodyText,"UTF-8")  
 Pos=Instr(BodyText,"<body")  
 pos1=Instr(BodyText,"</body>")  
 BodyText=mid(BodyText,pos,pos1)  

 Pos = Instr(BodyText,"<div>")  
 BodyText = Mid(BodyText,Pos)  
 pos1=Instr(BodyText,"</div>")  
 BodyText=mid(BodyText,1,pos1)  
 'response.write ("::::"&BodyText&"::::")  

 BodyText=split(BodyText,"<p class=g>")  

 for i = 1 to 10  
  Pos=Instr(BodyText(i),"</a>")  
  thet = Mid(BodyText(i),1,Pos+3)   

  Pos = Instr(BodyText(i),"<span dir=ltr>")  
  theu = Mid(BodyText(i),Pos)  
  pos1=Instr(theu,"</span>")  
  theu=mid(theu,1,pos1-1)  

  response.write("T:"&thet&"<br>")  
  response.write("U:"&theU&"<br><hr>")  

 next  

Set oXMLHTTP = Nothing   
if err.number<>0 then  
response.write "出錯了,錯誤描述:"&err.description & "<br>錯誤來源"& err.source  
response.End()  
end if  
End Function   


Function getCategories2()  
on error resume next  
Dim oXMLHTTP ' As Object  
Dim oCategories ' As Object  
Dim BodyText  
Dim Pos,Pos1  
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")  

out = 0  
start = 0  
pp = 0  
do while(true)  

strurl="http://www.google.com/search?q="&word&"&hl=zh-CN&start="&start  
'response.write(strurl&"<br>")  

oXMLHTTP.open "GET",strurl,False    
oXMLHTTP.send   

 BodyText=oXMLHTTP.responsebody  
 BodyText=BytesToBstr(BodyText,"gb2312")  
 Pos=Instr(BodyText,"<body")  
 pos1=Instr(BodyText,"</body>")  
 BodyText=mid(BodyText,pos,pos1)  


 Pos = Instr(BodyText,"<div>")  
 BodyText = Mid(BodyText,Pos)  
 pos1=Instr(BodyText,"</div>")  
 BodyText=mid(BodyText,1,pos1)  
 'response.write ("::::"&BodyText&"::::")  

 BodyText=split(BodyText,"<p class=g>")  

 for i = 1 to 10  
  Pos = Instr(BodyText(i),"<span dir=ltr>")  
  theu = Mid(BodyText(i),Pos)  
  pos1=Instr(theu,"</span>")  
  theu=mid(theu,1,pos1-1)  
  'response.write(theu)  

   Pos3=Instr(theu,url)  
  if Pos3 > 0 then  
   pp = start + i  
   out = 1  
   Exit For  
  end if  
 next  

 if out = 1 or start = 90 then  
  exit do  
 end if  

 start = cint(start)+10  
loop  
if pp <> 0 then  
 response.write("<br><br>網站 <b>'"&url&"'</b> 在搜索關鍵詞 <b>'"&word&"'</b> 時在Google中排名名次 第<b> "&pp&" </b>位 ")  
else  
 response.write("<br><br>網站 <b>'"&url&"'</b> 在搜索關鍵詞 <b>'"&word&"'</b> 時在Google中排名名次 <font color=red>未在前100名內</font>")  
end if  


Set oXMLHTTP = Nothing   
if err.number<>0 then  
response.write "出錯了,錯誤描述:"&err.description & "<br>錯誤來源"& err.source  
response.End()  
end if  

End Function   

Function BytesToBstr(body,Cset)  
        dim objstream  
        set objstream = Server.CreateObject("adodb.stream")  
        objstream.Type = 1  
        objstream.Mode =3  
        objstream.Open  
        objstream.Write body  
        objstream.Position = 0  
        objstream.Type = 2  
        objstream.Charset = Cset  
        BytesToBstr = objstream.ReadText   
        objstream.Close  
        set objstream = nothing  
End Function  
Public Function HTMLEncode(fString)  
  If Not IsNull(fString) Then  
   fString = replace(fString, ">", ">")  
   fString = replace(fString, "<", "<")  
   fString = Replace(fString, CHR(32), " ")  '   
   fString = Replace(fString, CHR(9), " ")   '   
   fString = Replace(fString, CHR(34), """)  
   fString = Replace(fString, CHR(39), "'") '單引號過濾  
   fString = Replace(fString, CHR(13), "")  
   fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")  
   fString = Replace(fString, CHR(10), "<BR> ")  
   HTMLEncode = fString  
  End If  
 End Function  




%>  
<title>關鍵字,網站在Google中排名查詢</title>  
<hr><hr><b>  
關鍵字,網站在Google中排名查詢:  
<form name="form1" method="post" action="?action=1">  
  網址:  
    <input type="text" name="url">  
 關鍵字  
 <input type="text" name="word">  
  <input type="submit" name="Submit" value="提交">  
</form>  
<b>  

<script>  
<!--  
function ss(w,id){window.status=w;return true;}  
function cs(){window.status='';}  
function clk(url,ct,cd,sg){if(document.images){var u="";if (url) u="&url="+escape(url).replace(/\+/g,"%2B");new Image().src="/url?sa=T&ct="+escape(ct)+"&cd="+escape(cd)+u+"&ei=r9vyQ9ypE5GsoQKL4KDyCg"+sg;}return true;}  
function ga(o,e) {if (document.getElementById) {var a = o.id.substring(1); var p = "", r = "", t, f, h;var g = e.target;if (g) { t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h)r = h.id;}} else {h = e.srcElement;f = h.parentNode;if (f)p = f.id;t = h.id;}if (t==a || p==a || r==a)return true;document.getElementById(a).href += "&ct=bg";window.open(document.getElementById(a).href,'nw')}}  
//-->  
</script> 

延伸 · 閱讀

精彩推薦
Weibo Article 1 Weibo Article 2 Weibo Article 3 Weibo Article 4 Weibo Article 5 Weibo Article 6 Weibo Article 7 Weibo Article 8 Weibo Article 9 Weibo Article 10 Weibo Article 11 Weibo Article 12 Weibo Article 13 Weibo Article 14 Weibo Article 15 Weibo Article 16 Weibo Article 17 Weibo Article 18 Weibo Article 19 Weibo Article 20 Weibo Article 21 Weibo Article 22 Weibo Article 23 Weibo Article 24 Weibo Article 25 Weibo Article 26 Weibo Article 27 Weibo Article 28 Weibo Article 29 Weibo Article 30 Weibo Article 31 Weibo Article 32 Weibo Article 33 Weibo Article 34 Weibo Article 35 Weibo Article 36 Weibo Article 37 Weibo Article 38 Weibo Article 39 Weibo Article 40
主站蜘蛛池模板: 日韩在线 | 91欧美激情一区二区三区成人 | 成人午夜性a一级毛片免费看 | av在线精品 | 国产中文字幕网 | 中文字幕在线电影观看 | 日本在线观看一区 | www.44181com| 免费毛片视频 | 亚洲精品视频在线 | 成人九九视频 | 久久久夜夜夜 | 日本久久久久 | 欧美第5页| 婷婷亚洲五月 | 亚洲精品在线视频 | 亚洲三区在线观看 | 国产97在线 | 免费 | av网站大全免费 | 欧美激情精品久久久久久 | 视频四区 | 国产综合精品一区二区三区 | 一级黄色片子看看 | 男女激情网站 | 色678黄网站全部免费 | 黄色片在线免费观看 | 国产精品99久久久久久久vr | 中文字幕欧美日韩 | 免费成人av网址 | 久久www免费人成看片高清 | 久久夜夜 | 九九九久久久久久 | 在线中文视频 | 狠狠色噜噜 | 一级毛片在线免费看 | 色综合久久88色综合天天6 | 国产成人在线看 | 日本久草| 日韩欧美一级片 | 国产欧美日韩一区二区三区四区 | 欧美一级在线观看 |