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

So, do you like playing 20 Questions?

As my next question, I choose: "What parts of the page(s) are missing?"

Replies are listed 'Best First'.
Re^8: web search for certain data
by pydi (Initiate) on Nov 23, 2011 at 20:43 UTC

    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

      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.