没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > xuploader |
|
xuploader
|
| 0 | 0 | 0 |
| 贡献者 | 讨论 | 代码提交 |
xuploader.py is a Python library that lets you upload photos and videos to Xanga.com. It includes a main() function for command line usage.
Xanga.com does provide official upload tools, but only for Windows operating systems, and only as a GUI application. xuploader provides the same functionality for Linux, Unix, BSD, Mac OSX and any other operating system that supports Python.
xuploader was not created by, and is not supported by, Xanga.com, so don't go crying to them if this script doesn't work for you! :)
Requires Python 2.4 or later, tested on Python 2.4.4
Usage:
Interactive
===========
xuploader.py --username=you --password=yourpassword somefile.jpg
run 'xuploader.py --help' from the command line for a description
of all available options
Module
======
Code example:
from xuploader import XangaUploader
x = XangaUploader(username='you', password='yourpassword')
mediafile = 'somefile.jpg'
result = x.upload(mediafile)
see the main() function for more complete example
Thanks to:
Will Holcomb for providing the
MutipartPostHandler code, which is really what's doing
all of the work here.
http://odin.himinbi.org/MultipartPostHandler.py
Adam @ Xanga for developing the official Xanga uploader
and answering all of my questions about the HTTP traffic
I sniffed :)
标签:
