Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.javascript Subject: Re: Data retrieving from html text on a webpage Date: Tue, 20 May 2014 10:05:54 +0000 (UTC) Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <08bb65e9-25e1-47f0-94bd-c1cb6525375e@googlegroups.com> <537a7de1$0$6653$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 20 May 2014 10:05:54 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="8544"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1wd65YBk5k/9hXT34M+EvfcNVB4GSdb8=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:EF0IFyUC+IvV5P2qIt8LMu8EemU= Xref: csiph.com comp.lang.javascript:24274 On Mon, 19 May 2014 23:55:46 +0200, Christoph Michael Becker wrote: > Denis McMahon wrote: > >> On Sun, 18 May 2014 01:18:46 -0700, FAISAL ISMAIL wrote: >> >>> i am trying to extract html text from a table on the link >>> (http://floodobservatory.colorado.edu/AMSR-E%20Gaging%20Reaches/ >> Summary3.htm) >>> the data is in rows and columns. all i want is to extract data for >>> some specific country e.g Pakistan. >>> Kindly help me with the issue. >> >> By the way, if I was trying to scrape data from a website, I'm not sure >> that javascript would be my first choice language either. > > Why not? Are there better alternatives? From my machine sitting here, trying to scrape data from a website over there, I would be inclined to use either python or php, making use of libraries to retrieve urls and other libraries that allowed dom manipulation. For example, 12 lines of python gets me a list of lists of the table cell content in the webpage posted by the OP meeting his criteria. -- Denis McMahon, denismfmcmahon@gmail.com