Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 2012, 06:20 AM
sunperldar sunperldar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 10 sunperldar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 54 m 12 sec
Reputation Power: 0
Help please

http://records.co.hawaii.hi.us/weblink/1/doc/62475/Page1.aspx

This webpage has image pdf on it.. I want to download it.
But I'm getting some issues while.

I have tried with mechanize module but nothing works.

Could you help me..

Reply With Quote
  #2  
Old December 13th, 2012, 01:55 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 191 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 59 m 25 sec
Reputation Power: 41
Post your code and the errors/messages you are getting.

Reply With Quote
  #3  
Old December 14th, 2012, 04:17 AM
sunperldar sunperldar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 10 sunperldar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 54 m 12 sec
Reputation Power: 0
Re:

Quote:
Originally Posted by spacebar208
Post your code and the errors/messages you are getting.


use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck => 1 );
use WWW::Mechanize:ecodedContent;
my $url="http://records.co.hawaii.hi.us/WebLink/PDF/zp5pey55qd5wcxnycpoa5q55/146/2012-11-1%20TO%202012-11-3%20PermitsIssuedDetails.pdf";
$mech->get($url);
my $status=$mech->response->status_line;
print "Code::$status\n";
my $content=$mech->content;
# my $content = $mech->decoded_content;
# my @links = $mech->find_all_links(
# tag => "a", text_regex => qr/\bpermitsIssued\b/igs );
open(fh1,">mech_cont.html");
print fh1 $content;
close(fh1);
# print "Links::@links\n";
print "Content Fetched Scuccessfully\n";

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Help please

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap