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
xuploader.py --username=you --password=yourpassword somefile.jpg
run 'xuploader.py --help' from the command line for a description
of all available options
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
Will Holcomb for providing the
MutipartPostHandler code, which is really what's doing
all of the work here.
Adam @ Xanga for developing the official Xanga uploader
and answering all of my questions about the HTTP traffic
I sniffed :)
Use Patent Claims
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.