Results 1 to 1 of 1

Thread: remarks.pl for BT5

Threaded View

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

    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.

    Code:
    #!/bin/bash
    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
  •