Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for a script that can grab content

Status
Not open for further replies.
The 'grab' part is simple. The 'display it any way I want' is not.

To grab a page...
Code:
#!perl
use LWP::Simple;
$url = '[URL unfurl="true"]http://www.country.com/cmt/the/rest/of/the/uri...';[/URL]
$page_content = get($url);
print  $page_content;

That will retrieve the content of the requested page. I don't quite understand how you want to reformat the output. Maybe a little more detail would help......


HTH



keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top