![]() |
|
|
#1 |
|
Yes! I am invincible!
![]() Fecha de Ingreso: febrero-2009
Ubicación: Infierno
Amigos 32
Mensajes: 2.408
Gracias: 0
Agradecido 156 veces en 112 mensajes.
|
Un simple script en Ruby para buscar la definicion de cualquier palabra
El codigo Código:
#!usr/bin/ruby
#Diccionario Online 0.1
#Coded By Doddy H
require "net/http"
require "cgi"
def head()
print "
@@@@ @ @ @
@ @
@ @
@ @ @ @@@ @@@ @ @@@ @ @@ @@@ @@ @ @@@
@ @ @ @ @ @ @ @ @ @ @@ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @@@@ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
@@@@ @ @@@ @@@ @ @@@ @ @ @@@@ @ @ @@@
Coded By Doddy H
"
end
def copyright()
print "\n\n(C) Doddy Hackman 2012\n\n"
exit(1)
end
def toma(web)
return Net::HTTP.get_response(URI.parse(web)).body
end
head()
print "\n[+] Palabra : "
string = gets.chomp
url = "http://es.thefreedictionary.com/"+string
code = toma(url)
if code=~/<div class=runseg><b>1 <\/b> (.*?)[.:<]/
text = CGI.unescapeHTML($1)
if text == " "
print "\n\n[-] Palabra no encontrada"
else
print "\n\n[+] Definicion : "+text
end
end
copyright()
#The End ?
|
|
|
|
![]() |
| Herramientas | |
| Desplegado | |
|
|

Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Naruto | milaras21 | Foro anime | 0 | 24-feb-2011 23:06 |
| Ranma 1/2 Serie Completa Español Latino | pablomaximo1 | Peliculas | 0 | 24-sep-2010 10:30 |