百度风云榜前50名小偷——专门用于提高你网站的流量!
2006-07-22 18:32
459 查看
百度风云榜前50名小偷小偷自动偷取百度搜索风云榜上每日更新的TOP50关键词。 ——将此代码内嵌你的网站首页(不会占用你的首页显示空间,但是可以被搜索机器人看见),这样你的网站被搜索点击的机会上百倍的增加!!! ——专门用于提高你网站的流量!
<!--搜索代码开始-->
<%
dim url,page,rr,i,cutpage,str
'on error resume next
Function getHTTPPage(url)
' on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then err.Clear
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
'===================================================
url="http://top.baidu.com/top_keyword.html"
page= getHTTPPage(url)
cutpage=split(page,"<td width="&chr(34)&"124"&chr(34)&">")
str=""
for i=1 to ubound(cutpage)
rr=instr(cutpage(i),"</td>")
str=str&mid(cutpage(i),1,rr-1)&" "
next
str=replace(replace(str,"<div align="&chr(34)&"center"&chr(34)&">",""),"</div>","")
response.Write("<marquee direction='up' height='1' width='1' id='xp' scrollamount='1' scrolldelay='100' width='100%' align='center' border='0'><b>"&str&"</b></marquee>")
%>
<!--搜索代码结束-->
我改了一下
<%
dim url,page,i,str
'on error resume next
Function getHTTPPage(url)
' on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,False
Http.SetRequestHeader "Referer",url
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then err.Clear
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
'===================================================
url="http://top.baidu.com/top_keyword.html"
page= getHTTPPage(url)
Dim Re
Set Re=new Regexp
Re.Multiline=True
Re.Global=True
Re.IgnoreCase=True
Re.pattern="p12blue""\>(([^\<])+?)\<\/"
Set Matches=Re.Execute(page)
For Each N In Matches
Str=str&","&N.value
Next
Str=Replace(str,"p12blue"">","")
str=Replace(str,"</","")
response.Write("<marquee direction='up' height='1' width='1' id='xp' scrollamount='1' scrolldelay='100' width='100%' align='center' border='0'><b>"&str&"</b></marquee>")
%>
<!--搜索代码开始-->
<%
dim url,page,rr,i,cutpage,str
'on error resume next
Function getHTTPPage(url)
' on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then err.Clear
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
'===================================================
url="http://top.baidu.com/top_keyword.html"
page= getHTTPPage(url)
cutpage=split(page,"<td width="&chr(34)&"124"&chr(34)&">")
str=""
for i=1 to ubound(cutpage)
rr=instr(cutpage(i),"</td>")
str=str&mid(cutpage(i),1,rr-1)&" "
next
str=replace(replace(str,"<div align="&chr(34)&"center"&chr(34)&">",""),"</div>","")
response.Write("<marquee direction='up' height='1' width='1' id='xp' scrollamount='1' scrolldelay='100' width='100%' align='center' border='0'><b>"&str&"</b></marquee>")
%>
<!--搜索代码结束-->
我改了一下
<%
dim url,page,i,str
'on error resume next
Function getHTTPPage(url)
' on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,False
Http.SetRequestHeader "Referer",url
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then err.Clear
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
'===================================================
url="http://top.baidu.com/top_keyword.html"
page= getHTTPPage(url)
Dim Re
Set Re=new Regexp
Re.Multiline=True
Re.Global=True
Re.IgnoreCase=True
Re.pattern="p12blue""\>(([^\<])+?)\<\/"
Set Matches=Re.Execute(page)
For Each N In Matches
Str=str&","&N.value
Next
Str=Replace(str,"p12blue"">","")
str=Replace(str,"</","")
response.Write("<marquee direction='up' height='1' width='1' id='xp' scrollamount='1' scrolldelay='100' width='100%' align='center' border='0'><b>"&str&"</b></marquee>")
%>
相关文章推荐
- 超人气新书《SEO实战密码——60天网站流量提高20倍》火爆热销
- 如何在短时间内提高网站流量打造精品网站
- 如何提高网站流量:内容→推广→创新
- 快速提高网站流量的办法 1周2000IP变2WIP(mcq0544)
- 一个专门用于文件下载的类。实现文件下载时流量等相关信息的处理。
- 教你快速提高网站流量的诀窍
- 如何提高网站的流量 seo
- 如何真实有效的提高网站的流量
- 如何提高网站流量?100种提高流量的办法
- 做一个美女图片大全那种的网站怎么提高网站流量?
- Google用于提高网站质量的工具:Page Speed工具集
- “预加载”生成缓存,来避开大流量高峰,提高网站性能
- 26步提高网站流量
- 用准这七个方法轻松帮你提高网站流量
- 流量兄弟教你如何提高网站的Google PR值
- 新建网站怎样快速提高网站流量?
- 快速提高网站流量的一些方法总结
- 快速提高网站流量的办法
- 五花八门的招数提高网站推广流量
- 提高网站流量的经验交流