Un simple programa para cortar urls.
/**
* URL Shorter 0.1
* Coded By Doddy H
*/
import java.util.Scanner;
import java.net.*;
import java.io.*;
public class Main {
Scanner host
= new Scanner
(System.
in); System.
out.
println("\n\n-- == URL Shorter 0.1 == --\n\n"); System.
out.
println("[+] Page : "); pagina = host.nextLine();
URL cargar
= new URL("http://tinyurl.com/api-create.php?url="+pagina
);
while ((re = nave.readLine()) != null)
System.
out.
println("\n[+] Link : "+re
); nave.close();
System.
out.
println("\n\n-- == Coded By Doddy H == --"); }
}
/**
* The End ?
*/