LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2011, 11:42 AM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
read web page javascript


hi there,

I want to use a javascript to read a web page , not to load it in my browser, and get some information for processing. Any ideas how to do that?

Thank you.
 
Old 09-04-2011, 11:51 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
You mean you want to scrape it?

Scraping is usually done by downloading the webpage and then parsing it server-side. The server-side code to do so isn't usually Javascript, although it of course can be (if you're using something like Node.js).

For parsing the HTML, here are some recommendations:

http://stackoverflow.com/questions/2...parser-is-best

BTW, your previous posts would indicate that you wrote "Javascript" when you meant "Java code". DON'T DO THAT.

Last edited by dugan; 09-04-2011 at 11:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web Page Appearance and Javascript - II LXer Syndicated Linux News 0 02-04-2009 10:20 AM
LXer: Web Page Appearance and Javascript LXer Syndicated Linux News 0 11-24-2008 10:00 AM
read/post variable with javascript without refreshinig the whole page frieza Programming 2 11-01-2008 07:31 PM
LXer: Save a Web page for later with Read It Later extension LXer Syndicated Linux News 0 09-29-2008 11:50 AM
Read x lines from a web page gareth_western Linux - Software 1 01-24-2005 12:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration