Just wanted to share, for those linux users having trouble uploading to megaupload. /usr/bin/megaupload #!/bin/bash # place your megaupload cookie string here # to obtain one, all you need to do is login to megaupload (doesn't work for safari) # type the following in address bar # javascript:document.write(document.cookie); # your string is user=(something); cstr=ABC123 description=test for file in "$@" do echo -n "Uploading ... $file ... " ident=`wget -qO- --no-cookies --header "Cookie: user=$cstr" [url]http://www.megaupload.com/multiupload/[/url] | grep ENCTYPE | cut -d '"' -f 8` value=`echo $ident | cut -d '=' -f 2` data=`curl -s -b "user=$cstr" -F "UPLOAD_IDENTIFIER=$ident" -F "sessionid=$value" -F "file=@$file" -F "message=$description" -F "accept=on" $ident` size=`echo $data | cut -d ' ' -f 10`' '`echo $data | cut -d ' ' -f 11` mega=`echo $data | cut -d "'" -f 6` echo "$mega|$size|$file" >> links echo "Done!" done Code (markup): make sure the script is executable $ chmod +x /usr/bin/megaupload examples: $ megaupload file[1-9].avi -> will upload file1.avi,file2.avi...file9.avi $ megaupload file1.avi -> will upload file1.avi $ megaupload * -> will upload all files A log will be written to a file called links.
Thanks for sharing this script. Do you have a similar script for downloads? I would like to have something like: # megadownload file1.avi -> to download file1.avi
There was a solution once, for bypassing captcha, /somename.php?d=link_code, I cant remember it exactly, just Google it.
I recommend you to use this new tool: Tucan Manager (http://tucaneando.com/). This application has a command line mode (CLI) to download from Megaupload, Rapidshare, Gigasize, ... without the needed of to introduce the captcha. And it accepts Premium Accounts. To know more about the CLI, there's a manual here (http://blog.tucaneando.com/2009/10/26/detalles-sobre-el-cli/), but it is in Spanish, so you can use the Google Translator. If you have some problems to understand it, please ask me (I speak native Spanish).
I can confirm that software couldn't be started in CLI mode. I've tried even from command line and always the GUI appeared.
For this I put the second link, and if you read it (is in Spanish, translate it please), if you use the application in linux like: tucan -c -i filename you will open it in CLI mode, and downloading the files writed in input file "filename". Try it
Is it possible to upload and set a password on the file as well? Do you see the percentage when its being uploaded? BTW, thank you for this. Been looking for a solution to this
Those can easily be implemented, I took out status bar to reduce server load, because this script is meant to be run in background.
OMG I was looking for this and i finally found it! This is great! But there is 1 thing i am specifically looking for this script to do: Can it like "watch" a folder (perhaps the folder it is in, or a subfolder of that) and everytime a new file is added, it automatically uploads it to megaupload? I am running this download->upload thing and i would LOVE to see that functionality! Is it possible for the script to delete the file 2 hours after upload? (not really necessary)
This can be done by running a daemon, I wrote this program for simple upload only. If you want something fancy, pm me if you are willing to pay.