LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   read web page javascript (https://www.linuxquestions.org/questions/programming-9/read-web-page-javascript-901058/)

manolakis 09-04-2011 11:42 AM

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.

dugan 09-04-2011 11:51 AM

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.


All times are GMT -5. The time now is 10:58 AM.