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 :

admin January 3rd, 2007

  • Web
  • Comments(6)

6 Responses to “DivShare automatic upload script (with twill)”

  1. ryanon 06 Feb 2007 at 8:19 pm

    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. Jkxon 06 Feb 2007 at 11:58 pm

    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. ston 12 Mar 2007 at 8:02 pm

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

  4. Mullaiselvanon 24 Jul 2007 at 11:33 am

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

  5. philon 01 Aug 2007 at 1:54 pm

    Seems like the script was cleared by DivShare.. Appears as empty file there for me

  6. Marcon 19 Nov 2007 at 12:57 am

    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 !

Comments RSS

Leave a Reply