Access old photos using the Picasa API

Can I get a list of photos from Picasa (or Google Plus, which still uses the Picasa API) that are older than the set date? I would like to get all the photos from today a year ago from the big album, the album "InstantUpload".

Here is what I learned:

  • The example in the Java Developers Guide provides a limited number of "recently uploaded" photos.
  • This issue clearly indicates that the PicasaWeb request does not allow published-min(or published-max) both request parameters .
  • start-index in this request has no effect.
  • Work using the Partial Response ", as suggested in the release mentioned above, using grab ... @ gmail.com does not work to get a photo before a certain (seemingly rather random) date.
+4
source share
1 answer

EDIT: googlecl has been discontinued. Its legacy version of OAuth is no longer accepted by Picasa. The approach described below no longer works. You can find an alternative in the Picasa Web Album Data API .


, Picasa, googlecl. Linux, Windows. , ; , (Java, #, ).

googlecl , Google, , , googlecl .

, InstantUpload. (/ + URL).

google picasa list --title="InstantUpload" --fields=published,url-direct --delimiter=" " > FullList.txt

AFAIK, . , , , . ( ), .

CLI , . , , , .

UTC ( yyyy-mm-dd):

maxdate=$(date -u --date="1 year ago" +%F)

(grep, sed, awk, perl), ; < MaxDate.

awk "\$1 < \"$maxdate\" { print \$2; }" FullList.txt > FilteredList.txt

(AWK .)

. , .

while read url; do
    wget "$url"
done < FilteredList.txt

script, , .

+2

All Articles