Results 1 to 1 of 1

Thread: for BT5

  1. #1
    Junior Member
    Join Date
    Feb 2010
    on this page

    Smile Exract comments from web source

    #Disregard Title
    #New Solution

    Very simple script that will help extract all comments off of a web page. The script is self explanatory, it basically reaches out to the site you feed it drops the source in a file then puts the comments in a separate file for you. I plan to build upon this in the future and as time permits.

    echo -n "Please enter your site: "
    read site
    wget $site
    awk '/<!--/,/-->/' index.html  >> comments.txt
    Last edited by chap0; 02-03-2012 at 11:10 PM. Reason: Way better solution in less lines ;)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts