DivShare automatic upload script (with twill)

DivShare is the latest share website a la mode ;) I started to use it quickly, and like it a lot. You can upload files really fast, and without any loging or password. It sound usefull no ?

The only issue is that you need a web browser on the desk, and waste some time to find the file. We can do a lot of better with command line no ?

So, I decided to use Twill to build a small tool to do the automatic-login, and file upload. (You can use anonymous login too, simply add -a to the command line)

Of course, a little example is better no ;)

jkx@localhost /tmp> divshare.py ./divshare.py
=[ DivShare uploader script ]=
   * Already logged

http://www.divshare.com/download/21679-c72

You can upload up to 5 files at one time, and on course you can script it .. (everybody love find ?)

In the way of, eating it’s own dog food, I decided to host the script divshare.py on
DivShare :)



Related Posts

7 thoughts on “DivShare automatic upload script (with twill)

  1. Is this a way to overwrite files already on divshare? For instance if I use this script to backup some data I may want to overwrite what’s already there.

  2. If you’re loggued in, you can delete the file before push it. (need some script patch) .. if you use the anonymous stuff, you can’t delete files.

    Bye

  3. Just a notice: For the time being twill doesn’t work with Python 2.5 on Windows. Use 2.3

  4. this web pages allows every one as independent access to this page. multiple upload is another +

  5. I tried to download the script from DivShare, but the file there is empty. Please tell me where I can download the divshare.py script. Thank you !

  6. I tried to download the script from DivShare, but the file there is empty. Please tell me where I can download the divshare.py script. Thank you !

    +1, plz reupload, if u can

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>