in reply to Re^7: web search for certain data
in thread web search for certain data

I am so sorry, i never meant to beat the bush around. Its just that this thing is gettin on my nerve. Well the ans for your last question is i get <META NAME="TITLE" CONTENT="Karger Publishers" /> when i should get <META NAME="TITLE" CONTENT="Effects of Body Position on the Carbon Monoxide Diffusing Capacity in Patients with Chronic Heart Failure: Relation to Hemodynamic Changes" /> Thats all is my problem

Replies are listed 'Best First'.
Re^9: web search for certain data
by Corion (Patriarch) on Nov 23, 2011 at 20:51 UTC

    What is this line supposed to do:

    $url =~ s/&/=/g ;

    Are you sure that you want to replace all & in your URL with =? If I remove that line, and much other unnecessary cruft, I see the complete HTML and especially also the relevant META tags:

    use strict; use LWP::Simple; #Parsing the http file for the required fields my $url = 'http://content.karger.com/ProdukteDB/produkte.asp?Aktion=Sh +owAbstract&ArtikelNr=6735&Ausgabe=224691&ProduktNr=223832'; #$url =~ s/&/=/g ; #my @url_mod = split('=', $url); #checking for url and increasing article no. warn "Downloading $url"; my $html = get $url; print $html;
      Thanks a lot, that works fine. Now i need to increase no. of Abstract&ArtikelNr , and get data for about 700 numbers.I used split to get the id, so that i can increase and get data.Is there other way to do it.
        Why split and replace when you can construct your URL directly? Just increase (or set) the ArtikelNr, and recreate the URL:
        My $artikel_nr = 12345; my $url= "http://...?ArtikelNr=$artikel_nr&..."; ...