Getting a web page and parsing it

Discussion in 'Command Line' started by Jal123, Sep 19, 2012.

  1. Jal123

    Jal123 New Member

    Joined:
    Sep 19, 2012
    Messages:
    1
    Likes Received:
    0
    Hi,
    I have been trying but i am stuck up with an issue of how to get a web page and grep it for a pattern.for example how do i get a google homepage in text format ,save it in a file and grep for a pattern google.Please someone help on this as i am nearing my project final date.Any help would be very useful.

     
  2. steelmanronald06

    steelmanronald06 Administrator Staff Member Staff Writer

    Joined:
    Nov 3, 2011
    Messages:
    32
    Likes Received:
    13
  3. KenJackson

    KenJackson Active Member

    Joined:
    Dec 26, 2011
    Messages:
    129
    Likes Received:
    28
    Install lynx, if you don't already have it.
    (On Fedora use "yum install lynx" as root.)

    Then try this:
    Code:
    lynx -dump http://google.com/
     

Share This Page