Getting webpage contents using a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • picking4321
    New Member
    • Jul 2008
    • 1

    Getting webpage contents using a script

    I wanna write a script to get the contents of a simple webpage like
    http://www.craigslist. org/msg
    i need just text output not html.
    I search this on google. There are suggestions about using perl LWP::Simple
    and using lynx. Both these options are not workable for me because
    lynx config files are missing on my system and perl package is not
    found on my system or cpan.org

    Pls let me know if you know of any other simple method to do this
    using perl/python or whatever else.

    Thanks
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    take a look at wget. I don't know if the program can fetch only text, but you might be able to write a small html filter for that.

    Comment

    Working...