有一种方法可以一次删除多个Picasa网络相册吗?[关闭]


12

我有一堆需要从Picasaweb中删除的相册。有没有办法做到这一点,还是我必须一次遍查它们才能删除它们?

Answers:


10

您可以使用Google命令行工具

google picasa list  
google picasa delete --title "Your album name"  

您必须创建一个批处理文件才能按名称删除多个相册。

或尝试输入专辑名称的一部分作为通配符。尝试一下。它将提示您确认与通配符匹配的每个专辑,如下所示:

yes | google picasa delete --title "2010."
HINT: No need to include "google" in interactive mode
Are you SURE you want to delete album "2010.8.09"? (y/N): y
Are you SURE you want to delete album "2010.08.09"? (y/N): y
Are you SURE you want to delete album "2010.08.14"? (y/N): y
Are you SURE you want to delete album "2010.07.29"? (y/N): y
Are you SURE you want to delete album "2010.06.09"? (y/N): y

谢谢你 由于某种原因,该google picasa list命令永远不会为我返回。但是删除有效。如果我选择所有专辑“。*”,它也会在第一个专辑(自动备份)上崩溃,但是,这为我节省了删除数千张专辑的时间。
Marius

1
如果只有Google命令行工具仍然有效,那么这可能是最大的答案:截至2015年10月,由于Google似乎不再支持OAuth1,因此这些命令行工具不再起作用。通过答案中提供的链接:8 June 2015: GoogleCL is currently broken due to the OAuth1 turndown, and likely to remain so. Thanks for your support over the years, and apologies for the lack of prior notice.
克林特·伊斯特伍德

2

此Linux Shell脚本将从您的Picasa帐户中删除所有相册。它curl与Google Picasa Web-API结合使用。只需在脚本中更改有关您帐户的用户名和密码即可。

#!/bin/sh

# Tutorial: https://developers.google.com/gdata/articles/using_cURL
# Requires: curl, grep, sed

ACCOUNT="GOOGLE"
USERNAME="user@gmail.com"
PASSWORD="pass"
SERVICE="lh2"

# authenticate
AUTH_KEY=$(curl --silent "https://www.google.com/accounts/ClientLogin?accountType=$ACCOUNT&Email=$USERNAME&Passwd=$PASSWORD&service=$SERVICE" | grep 'Auth=' | sed -e 's|Auth=||g')
AUTH_HEADER="Authorization: GoogleLogin auth=$AUTH_KEY"

# get album list for deletion
RESPONSE=$(curl --silent --header "$AUTH_HEADER" "http://picasaweb.google.com/data/feed/api/user/default")
ALBUM_LIST_EDIT=$(echo "$RESPONSE" | sed -e 's|<link rel=.edit. type=.application/atom+xml. href=.|\n|g;s|./><link|\n|g' | grep '^http://')

# delete all albums
for ALBUM in $ALBUM_LIST_EDIT
do
    echo "$ALBUM" | sed 's|.*api|\.|g'
    curl --request DELETE --header "$AUTH_HEADER" "$ALBUM"
done

这是一个好主意,但是它不再起作用,所以不要打扰。当我尝试手动执行第一个请求时,系统指示我转到developers.google.com/identity/protocols/AuthForInstalledApps,该消息依次是这样的:Important: ClientLogin has been officially deprecated since April 20, 2012 and is now no longer available. Requests to ClientLogin will fail with a HTTP 404 response. We encourage you to migrate to OAuth 2.0 as soon as possible.
Clint Eastwood

0

似乎没有一种从Web界面删除多个相册的方法。您需要一次做一个。(这确实是有道理的。想象一下,如果一次误删除整个专辑会造成混乱。)


1
抱歉...在Picasa 3中,可以通过“工具” |“删除”来删除空的网络相册。实验性| 删除空的网络相册(productforums.google.com/forum/#!category-topic/picasa/…)。我已经多次使用此功能。
香农·瓦格纳

0

(最初是从评论香农·瓦格纳

在Picasa 3中,可以找到删除空网络相册的功能Tools | Experimental | Delete Empty Web Albums。(来源

我已经多次使用此功能。


现在Picasa网络相册几乎已完全被Google相册取代,这仍然有效吗?
ale

-1

您可以从Picasa应用程序中删除多个PWA在线相册:http : //support.google.com/picasa/answer/187407

工具批量上传在线删除 →只需选择您要删除的相册,然后单击确定。


尝试执行此操作时,我收到一条消息,提示“无法从Google+删除照片”。
2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.