For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > March 2004 > Checking HTML, following links and such









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Checking HTML, following links and such
Joti

2004-03-18, 6:46 pm

For a rather long time, I've tried to find something for viewing the HTML of
a page, and then go to different pages or follow different links depending
on the HTML.

Is Perl the right language for doing his, and how do I do it?


Ben Morrow

2004-03-18, 6:46 pm


"Joti" <spam@gurka.se> wrote:
> For a rather long time, I've tried to find something for viewing the HTML of
> a page, and then go to different pages or follow different links depending
> on the HTML.
>
> Is Perl the right language for doing his, and how do I do it?


Try WWW::Mechanize.

Ben

--
"The Earth is degenerating these days. Bribery and corruption abound.
Children no longer mind their parents, every man wants to write a book,
and it is evident that the end of the world is fast approaching."
-Assyrian stone tablet, c.2800 BC ben@morrow.me.uk
Joti

2004-03-18, 6:46 pm


"Ben Morrow" <usenet@morrow.me.uk> skrev i meddelandet
news:c1893k$mb$1@wisteria.csv.warwick.ac.uk...
>
> "Joti" <spam@gurka.se> wrote:
HTML of[color=darkred]
depending[color=darkred]
>
> Try WWW::Mechanize.
>
> Ben
>
> --
> "The Earth is degenerating these days. Bribery and corruption abound.
> Children no longer mind their parents, every man wants to write a book,
> and it is evident that the end of the world is fast approaching."
> -Assyrian stone tablet, c.2800 BC

ben@morrow.me.uk

I'm sorry, but i don't really know that much about perl, only the basic
stuff. Not about what ever WWW::Mechanize is. I've made a google search but
I still don't seem to understand. Could someone explain?


Gunnar Hjalmarsson

2004-03-18, 6:46 pm

Joti wrote:
> "Ben Morrow" <usenet@morrow.me.uk> skrev i meddelandet
> news:c1893k$mb$1@wisteria.csv.warwick.ac.uk...
>
> I'm sorry, but i don't really know that much about perl, only the
> basic stuff. Not about what ever WWW::Mechanize is. I've made a
> google search but I still don't seem to understand. Could someone
> explain?


It's a Perl module, available at www.cpan.org.

One of the characteristics of Perl is that a lot of useful tools are
provided in the form of modules, i.e. separate files with code that
you load into your main program and make use of in accordance with the
documentation for respective module. WWW::Mechanize is not part of the
standard Perl distribution, so to use it, you need to download and
install it. Learning how to do that is one of the first things you
should do.

http://learn.perl.org/

HTH

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Joti

2004-03-18, 6:46 pm


"Gunnar Hjalmarsson" <noreply@gunnar.cc> skrev i meddelandet
news:c18aci$1fsean$1@ID-184292.news.uni-berlin.de...
> Joti wrote:
>
> It's a Perl module, available at www.cpan.org.
>
> One of the characteristics of Perl is that a lot of useful tools are
> provided in the form of modules, i.e. separate files with code that
> you load into your main program and make use of in accordance with the
> documentation for respective module. WWW::Mechanize is not part of the
> standard Perl distribution, so to use it, you need to download and
> install it. Learning how to do that is one of the first things you
> should do.
>
> http://learn.perl.org/
>
> HTH
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>


OK, thanks =)


Joti

2004-03-18, 6:46 pm


"Joti" <spam@gurka.se> skrev i meddelandet
news:c18u82$1g0khc$1@ID-224346.news.uni-berlin.de...
>
> "Gunnar Hjalmarsson" <noreply@gunnar.cc> skrev i meddelandet
> news:c18aci$1fsean$1@ID-184292.news.uni-berlin.de...
>
> OK, thanks =)
>
>

Now, I've downloaded the module and tried to install it as
http://www.cpan.org/modules/INSTALL.html says. However there's something
wrong when i write "nmake" after "perl makefile.pl":
~"nmake is not an internal command, external command, program or a
commandfile."
(sorry if my translation Swedish-English isn't perfect)
Neither do dmake nor make work.


Ben Morrow

2004-03-18, 6:46 pm


"Joti" <spam@gurka.se> wrote:
>
> Now, I've downloaded the module and tried to install it as
> http://www.cpan.org/modules/INSTALL.html says. However there's something
> wrong when i write "nmake" after "perl makefile.pl":
> ~"nmake is not an internal command, external command, program or a
> commandfile."


You need to install nmake: read c:/perl/html/perlwin32.html to see where
to download it from.

Alternatively (assuming ActiveState Perl) you may have better luck with
ppm install WWW::Mechanize.

Ben

--
"If a book is worth reading when you are six, * ben@morrow.me.uk
it is worth reading when you are sixty." - C.S.Lewis
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com