Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #24212 > unrolled thread
| Started by | FAISAL ISMAIL <faesal19@gmail.com> |
|---|---|
| First post | 2014-05-18 01:18 -0700 |
| Last post | 2014-05-20 13:03 +0200 |
| Articles | 3 on this page of 23 — 7 participants |
Back to article view | Back to comp.lang.javascript
Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-18 01:18 -0700
Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-18 15:41 +0000
Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-18 17:41 +0200
Re: Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-18 12:52 -0700
Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-18 23:29 +0200
Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-19 11:04 +0100
Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-19 13:11 +0200
Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-20 10:43 +0100
Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 14:34 +0200
Re: Data retrieving from html text on a webpage John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-22 10:42 +0100
Re: Data retrieving from html text on a webpage FAISAL ISMAIL <faesal19@gmail.com> - 2014-05-22 09:07 -0700
Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-19 21:44 +0000
Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-19 23:55 +0200
Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-20 00:04 +0200
Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 12:59 +0200
Re: Data retrieving from html text on a webpage "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-20 17:13 +0200
Re: Data retrieving from html text on a webpage Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-05-20 00:40 +0100
Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 13:17 +0200
Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 14:19 +0200
Re: Data retrieving from html text on a webpage Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-05-21 13:51 +0100
Re: Data retrieving from html text on a webpage Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-21 17:55 +0200
Re: Data retrieving from html text on a webpage Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-20 10:05 +0000
Re: Data retrieving from html text on a webpage Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-20 13:03 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-05-21 17:55 +0200 |
| Message-ID | <2712204.XrRk9J9qZ2@PointedEars.de> |
| In reply to | #24313 |
Ben Bacarisse wrote: > Thomas 'PointedEars' Lahn <PointedEars@web.de> writes: >> Christoph Michael Becker wrote: >>> Indeed, using XSLT might be a good idea, but this *can* also be used >>> from an ECMAScript implementation. >> >> True. However, it appears to me that it is still proprietary. [0] > > As it happens, I was replying to the "better alternatives to javascript" > part. I wasn't suggesting a specific JS library. The tool I'd found > useful was the xsltproc command, built with libxslt which seems to be > part of GNOME. There is no “JS library” involved in using XSLT with (Mozilla|V8) JavaScript and Apple JavaScriptCore at least. It is a built-in feature of the Gecko DOM and WebCore. Follow the reference. >> The explanation for the abbreviation is correct, which is why XSLT is >> probably *not* a good approach here. XSLT can be used to *transform* >> *XML*-based markup to other markup or plain text. [1] The original >> markup here is neither [2]. It would have to be cleaned-up and converted >> to XHTML in order to apply XSLT to it. > > I used xsltproc on some pretty dreadful HTML texts. The command has a > flag to signal that the input is HTML, but I have no idea what it really > does. Obvious. In order to process HTML, it must include an HTML parser which a true XSLT processor does not. See above. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2014-05-20 10:05 +0000 |
| Message-ID | <llf9e2$8b0$3@dont-email.me> |
| In reply to | #24267 |
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
[toc] | [prev] | [next] | [standalone]
| From | Christoph Michael Becker <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-05-20 13:03 +0200 |
| Message-ID | <537b3688$0$6666$9b4e6d93@newsspool3.arcor-online.net> |
| In reply to | #24274 |
Denis McMahon wrote: > 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. There are respective libraries for ECMAScript implementations, too. -- Christoph M. Becker
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.javascript
csiph-web