I wrote a simple utility to synchronize local picture directory with picasa web album. I'm pleased to share it :)
Python code, 41 lines.
This is the wiki page for it. Welcome to download and enjoy it :)
http://todwang.blogspot.com
Python code, 41 lines.
This is the wiki page for it. Welcome to download and enjoy it :)
Install
Download http://gdata-python-client.googlecode.com/files/gdata.py-1.1.1.zip and install it according to the http://code.google.com/apis/gdata/articles/python_client_lib.html
Download this utility
Download http://picasup.googlecode.com/svn/trunk/picUp/src/picup/picu.py , and copy it to wherever you like, such as /home/todwong/sandbox/python/picupy/picu.py
Register it into PATH
Create a shell script in $PATH, such as /home/todwong/bin/picupy, with the content:
python /home/todwong/sandbox/python/picupy/picu.py
and make this scrtip executable:
chmod +x /home/todwong/bin/picupy
Use
Go to your directory with your jpg files, such as
cd /home/todwong/pic/hangzhou/
picupy
which refers /home/todwong/bin/picupy
Input you picasa web account username and password.
Thanks to
http://code.google.com/apis/picasaweb
http://todwang.blogspot.com
2 评论:
有没有可能双向同步阿?
另外是否能增加一个功能,将当前目录的子目录和picasa目录的进行同步?
如果做成图形界面应该比较好,呵;
发表评论