GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   For people that use mega.co.nz (https://gfy.com/showthread.php?t=1114345)

fris 07-03-2013 08:47 AM

For people that use mega.co.nz
 
Curious who uses it for storage?

If you do a good command line tool for easily using their api is handy called megatools

http://megatools.megous.com/

here is a little bash script i wrote to get a list of your files and the urls

Code:

#!/bin/bash

# get a list of mega.co.nz download links for uploaded files
# requires megatools - https://github.com/megous/megatools

files=$(megals | grep "Root/")

if which megals> /dev/null 2>&1; then

  for file in $files; do
      echo $file | cut -c7-
      megals -e $file | awk '{print $1}'
  done

else
  echo "this requires megatools"
  exit 1
fi

http://i.imgur.com/g1Swyqy.jpg

:thumbsup


All times are GMT -7. The time now is 02:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123