来与大家分享。稍加改造就可以实现更强大的功能了。
用下面的代码就可以简单的批量导出picasa相册的外链了。
复制代码 代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
dim xmlget,xmlhttp,email,paswd
email="youremail" '输入picasa的账户email
paswd="yourpassword" '输入picasa的密码
Set xmlhttp = CreateObject("Msxml2.ServerXMLHTTP")
With xmlhttp
.Open "GET", "https://www.google.com/accounts/ServiceLoginAuth?service=lh2&continue=http://picasaweb.google.com/lh/login?continue=http%3A%2F%
2Fpicasaweb.google.com%2Fhome<mpl=gp&h1=zh_CN&GALX=ip37cq7CgwE&Email="&email&"&Passwd="&paswd, False
'.setRequestHeader "CONTENT-TYPE","application/x-www-form-urlencoded"
.Send ""
xmlget = getRedirect(bin2str(.responseBody))
.Open "GET", xmlget
.Send ""
xmlget = bin2str(.responseBody)
if request("type")="photo" then
.Open "GET", request("url")
.Send ""
xmlget = bin2str(.responseBody)
xmlget = Replace(xmlget, "pwa.setup", "test2")
else
xmlget = Replace(xmlget, "pwa.setup", "test")
end if
End With
set xmlhttp = nothing
Function bin2str(binstr)
Const adTypeBinary = 1
Const adTypeText = 2
Dim BytesStream,StringReturn
Set BytesStream = Server.CreateObject("ADODB.Stream")
With BytesStream
.Type = adTypeText
.Open
.WriteText binstr
.Position = 0
.Charset = "UTF-8"
.Position = 2
StringReturn = .ReadText
.Close
End With
Set BytesStream = Nothing
bin2str = StringReturn
End Function
Function getRedirect(str)
str = Mid(str, Instr(str, "location.replace"))
str = Mid(str, 19, Instr(str, """)")-19)
str = Replace(str, "\x3d", "=")
getRedirect = Replace(str, "\x26", "&")
End Function
%>
<%
if request("type")<>"photo" then
%>
<script language="javascript"><!--
function test()
{
if(arguments.length != 8)
return;
var html = "<ul>";
var albums = arguments[3];
for (var i=0;i<albums.length;i++)
html+="<li><a href='http://<%=Request.ServerVariables("Server_Name")&Request.ServerVariables("SCRIPT_NAME")%>?type=photo&url="+escape(albums
[i].url)+"'>"+albums[i].title+"</a></li><br/><img src="/UploadFiles/2021-04-02/"> html+="</ul>";
document.body.innerHTML=html;
}
// --></script>
<%
else
%>
<script language="javascript"><!--
function test2()
{
if(arguments.length != 15)
return;
var html = "<ul>";
var photoes = arguments[6].feedPreload.feed.entry;
for (var i=0;i<photoes.length;i++)
html+="<li>"+photoes[i]["content$src"]+"</li>";
html+="</ul>";
document.body.innerHTML=html;
}
// --></script>
<%
end if
%>
<%=xmlget%>
将上面的代码里picasa的用户名密码改好,保存成ASP文件,放到服务器下访问,就可以看到效果了。
用下面的代码就可以简单的批量导出picasa相册的外链了。
复制代码 代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
dim xmlget,xmlhttp,email,paswd
email="youremail" '输入picasa的账户email
paswd="yourpassword" '输入picasa的密码
Set xmlhttp = CreateObject("Msxml2.ServerXMLHTTP")
With xmlhttp
.Open "GET", "https://www.google.com/accounts/ServiceLoginAuth?service=lh2&continue=http://picasaweb.google.com/lh/login?continue=http%3A%2F%
2Fpicasaweb.google.com%2Fhome<mpl=gp&h1=zh_CN&GALX=ip37cq7CgwE&Email="&email&"&Passwd="&paswd, False
'.setRequestHeader "CONTENT-TYPE","application/x-www-form-urlencoded"
.Send ""
xmlget = getRedirect(bin2str(.responseBody))
.Open "GET", xmlget
.Send ""
xmlget = bin2str(.responseBody)
if request("type")="photo" then
.Open "GET", request("url")
.Send ""
xmlget = bin2str(.responseBody)
xmlget = Replace(xmlget, "pwa.setup", "test2")
else
xmlget = Replace(xmlget, "pwa.setup", "test")
end if
End With
set xmlhttp = nothing
Function bin2str(binstr)
Const adTypeBinary = 1
Const adTypeText = 2
Dim BytesStream,StringReturn
Set BytesStream = Server.CreateObject("ADODB.Stream")
With BytesStream
.Type = adTypeText
.Open
.WriteText binstr
.Position = 0
.Charset = "UTF-8"
.Position = 2
StringReturn = .ReadText
.Close
End With
Set BytesStream = Nothing
bin2str = StringReturn
End Function
Function getRedirect(str)
str = Mid(str, Instr(str, "location.replace"))
str = Mid(str, 19, Instr(str, """)")-19)
str = Replace(str, "\x3d", "=")
getRedirect = Replace(str, "\x26", "&")
End Function
%>
<%
if request("type")<>"photo" then
%>
<script language="javascript"><!--
function test()
{
if(arguments.length != 8)
return;
var html = "<ul>";
var albums = arguments[3];
for (var i=0;i<albums.length;i++)
html+="<li><a href='http://<%=Request.ServerVariables("Server_Name")&Request.ServerVariables("SCRIPT_NAME")%>?type=photo&url="+escape(albums
[i].url)+"'>"+albums[i].title+"</a></li><br/><img src="/UploadFiles/2021-04-02/"> html+="</ul>";
document.body.innerHTML=html;
}
// --></script>
<%
else
%>
<script language="javascript"><!--
function test2()
{
if(arguments.length != 15)
return;
var html = "<ul>";
var photoes = arguments[6].feedPreload.feed.entry;
for (var i=0;i<photoes.length;i++)
html+="<li>"+photoes[i]["content$src"]+"</li>";
html+="</ul>";
document.body.innerHTML=html;
}
// --></script>
<%
end if
%>
<%=xmlget%>
将上面的代码里picasa的用户名密码改好,保存成ASP文件,放到服务器下访问,就可以看到效果了。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“asp javascript picasa相册外链批量导出”评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。