• Publicidad

Descargar imágenes con Perl

¿Ya sabes lo que es una referencia? Has progresado, el nível básico es cosa del pasado y ahora estás listo para el siguiente nivel.

Descargar imágenes con Perl

Notapor lis » 2008-06-13 23:54 @037

HOLA: QUIERO DESCARGAR IMÁGENES DESDE ESTE SITIO: http://www.ncdc.noaa.gov/gibbs/calendar/2005 , Y REVISANDO POR INTERNET TENGO QUE USAR Image::Grab. LO DESCARGUÉ PERO AUN ASÍ NO LO PUEDO HACER.

A QUIEN ME AYUDE SE LOS AGRADEZCO DE ANTEMANO, ADIÓS...
lis
Perlero nuevo
Perlero nuevo
 
Mensajes: 106
Registrado: 2008-05-27 21:43 @946

Publicidad

Notapor explorer » 2008-06-14 04:40 @236

¿Qué dificultad hay en eso?
Sintáxis: [ Descargar ] [ Ocultar ]
Using perl Syntax Highlighting
use Image::Grab qw(grab);
$imagen = grab(URL=>'http://www.ncdc.noaa.gov/gibbs/image/GOE-12/VS/2005-10-12-00');
Coloreado en 0.002 segundos, usando GeSHi 1.0.8.4
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor kidd » 2008-06-14 08:07 @379

En el sitio hay un tutorial que te muestra cómo descargar imágenes con el Image::Grab:

http://perlenespanol.com/tutoriales/gra ... _http.html
Uriel Lizama Perl programmer fundador de Perl en Español
Perl Programming Language
Avatar de Usuario
kidd
Creador de Perl en Español
Creador de Perl en Español
 
Mensajes: 1166
Registrado: 2003-10-15 16:52 @744
Ubicación: México

DESCARGAR IMÁGENES DESDE PERL

Notapor lis » 2008-06-14 09:28 @436

HOLA GRACIAS POR TU RESPUESTA. HICE LO QUE DECÍAS Y ESTO ME SALE EN CONSOLA:

Código: Seleccionar todo
Can't locate Image/Grab.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./is2.pl line 2.
BEGIN failed--compilation aborted at ./is2.pl line 2.


HABÍA TAMBIÉN LEÍDO EL TUTORIAL, Y NO SÉ QUÉ ES LO QUE PASA.

GRACIAS KIDD.
lis
Perlero nuevo
Perlero nuevo
 
Mensajes: 106
Registrado: 2008-05-27 21:43 @946

Notapor explorer » 2008-06-14 10:37 @484

Pues pasa que Perl no encuentra el módulo Image::Grab. Está mal instalado o no está instalado.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor kidd » 2008-06-14 11:09 @506

Deberás de instalar el módulo que necesitas. Dependiendo de la plataforma con que estés trabajando será el proceso que deberás de seguir.
Uriel Lizama Perl programmer fundador de Perl en Español
Perl Programming Language
Avatar de Usuario
kidd
Creador de Perl en Español
Creador de Perl en Español
 
Mensajes: 1166
Registrado: 2003-10-15 16:52 @744
Ubicación: México

DESCARGAR IMÁGENES DESDE Perl

Notapor lis » 2008-06-14 11:12 @508

HOLA EXPLORER: DESCARGO Image-Grab-1.4.tar.gz DESDE ESTA PÁGINA:
http://search.cpan.org/~mahex/Image-Gra ... e/Grab.pod

¿Y LUEGO DÓNDE LO GUARDO PARA QUE LO RECONOZCA Perl?

GRACIAS POR SU AYUDA Y PRONTA RESPUESTA.
lis
Perlero nuevo
Perlero nuevo
 
Mensajes: 106
Registrado: 2008-05-27 21:43 @946

Notapor explorer » 2008-06-14 15:07 @671

Eso depende del sistema operativo que uses.

Usa el sistema de búsqueda de este foro para buscar entre los muchos hilos que hablan de ese tema. Busca por las palabras 'instalar' y 'módulos', y activa la opción de "Buscar todas las palabras".

Incluso hay un tutorial al respecto, en caso de que uses Windows:
http://perlenespanol.com/tutoriales/mod ... pmexe.html

¡Y NO CHILLES!
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

DESCARGAR IMÁGENES DESDE Perl

Notapor lis » 2008-06-15 10:59 @499

HOLA EXPLORER: YA REVISÉ BIEN LOS TUTORIALES Y LOGRÉ INSTALARLO BIEN, YA NO TENGO EL PROBLEMA DE ANTES.
OCUPÉ TODAS LAS FORMAS DE DESCARGAR IMÁGENES QUE SALE EN EL Grab.pod, TODO VA BIEN HASTA AHÍ PERO NO ME DESCARGA O GUARDA LAS IMÁGENES.

AYÚDAME PORFA, YA QUE TENGO QUE DESCARGAR IMÁGENES DE TODO UN AÑO, GRACIAS.

PD: USO DEBIAN.
lis
Perlero nuevo
Perlero nuevo
 
Mensajes: 106
Registrado: 2008-05-27 21:43 @946

Notapor explorer » 2008-06-15 16:46 @740

¿Y dónde está el código Perl que has usado y que te falla?
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Siguiente

Volver a Intermedio

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados