WWW:::Mechanize - Anyone have sample scripts?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting WWW:::Mechanize - Anyone have sample scripts?
# 1  
Old 12-15-2011
WWW:::Mechanize - Anyone have sample scripts?

Hello, I am trying to get to learn WWW::Mechanize & have found alot of sample scripts (that dont work) so am wondering if anyone has any that do, I basically just learn from stripping current bits out seeing how they work etc.. etc.. -

if anyone can point me to somewhere that has a few good working ones for beginners it would be much appreciated Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Ubuntu / PERL ]Problem installing WWW::Mechanize mod

Hello everyone, I've got some problem intalling a perl module. The installation is well done as you can see below. gueg@ux31:~$ sudo apt-get install libwww-mechanize-perl Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état...... (4 Replies)
Discussion started by: tot94
4 Replies

2. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

3. Shell Programming and Scripting

Sample output

hi gurus , i want the command to get the output in the desired format . basically to convert columns to rows. please refer to the attachment. (3 Replies)
Discussion started by: r_t_1601
3 Replies

4. Shell Programming and Scripting

Sample Practical

Hello Today I had a beautiful test to write some commands using Ubuntu, now I want to make sure of my answers to be reassured, if I had a mistake please correct me List all files details under ubuntu Desktop. my answer: cd Desktop |ls -l Navigate to your Desktop directory and... (7 Replies)
Discussion started by: S4K
7 Replies

5. Programming

WWW::Mechanize Question

We've been running perl scripts using the www::mechanize module on a linux box with no issues, however we just implemented the same scripts on an aix machine, aix 6.1, perl 5.8.8, and I am running into the issue with Content_Encoding: gzip in the returned html. I can't read it in that it is coming... (0 Replies)
Discussion started by: islanderman
0 Replies

6. UNIX for Dummies Questions & Answers

Sample scripts

Hi All' I'm a newbe, and just is started to learn unix. Where can I find a complete sample scripts? I looking for a sample scripts which log in at another unix host and and execute another script server side. Any input welcome (5 Replies)
Discussion started by: ioniCoder
5 Replies

7. Shell Programming and Scripting

Perl WWW:Mechanize failing

So, I've just started learning Perl, and I've decided to read up on some modules. I encountered WWW::Mechanize, which interests me, so I decided to try out a couple of basic tutorials. One of them is found here. I tried what seems a very basic case: #!/usr/bin/perl use WWW::Mechanize; $url... (1 Reply)
Discussion started by: treesloth
1 Replies

8. Answers to Frequently Asked Questions

scripts/programs/code posted to www.unix.com

Every now and then our users post complete programs to this site. It is especially important that these contributions don't get lost, so I will collect them here. Some of these programs are intended to demonstrate a programming technique and some are ready to run. As a guideline, the code... (0 Replies)
Discussion started by: Perderabo
0 Replies
Login or Register to Ask a Question
WWW::Mechanize::GZip(3pm)				User Contributed Perl Documentation				 WWW::Mechanize::GZip(3pm)

NAME
WWW::Mechanize::GZip - tries to fetch webpages with gzip-compression VERSION
Version 0.10 SYNOPSIS
use WWW::Mechanize::GZip; my $mech = WWW::Mechanize::GZip->new(); my $response = $mech->get( $url ); print "x-content-length (before unzip) = ", $response->header('x-content-length'); print "content-length (after unzip) = ", $response->header('content-length'); DESCRIPTION
The WWW::Mechanize::GZip module tries to fetch a URL by requesting gzip-compression from the webserver. If the response contains a header with 'Content-Encoding: gzip', it decompresses the response in order to get the original (uncompressed) content. This module will help to reduce bandwith fetching webpages, if supported by the webeserver. If the webserver does not support gzip- compression, no decompression will be made. This modules is a direct subclass of WWW::Mechanize and will therefore support any methods provided by WWW::Mechanize. The decompression is handled by Compress::Zlib::memGunzip. There is a small webform, you can instantly test, whether a webserver supports gzip-compression on a particular URL: <http://www.computerhandlung.de/www-mechanize-gzip.htm> METHODS prepare_request Adds 'Accept-Encoding' => 'gzip' to outgoing HTTP-headers before sending. send_request Unzips response-body if 'content-encoding' is 'gzip' and corrects 'content-length' to unzipped content-length. SEE ALSO
WWW::Mechanize Compress::Zlib AUTHOR
Peter Giessner "cardb@planet-elektronik.de" LICENCE AND COPYRIGHT
Copyright (c) 2007, Peter Giessner "cardb@planet-elektronik.de". All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-06-24 WWW::Mechanize::GZip(3pm)