LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Web scrapper and email (http://www.linuxquestions.org/questions/programming-9/web-scrapper-and-email-919728/)

3ast 12-20-2011 06:30 PM

Web scrapper and email
 
I am attempting to create a small script that would scan a web page for a few key words several times an hour and if finding a predetermined word would then email a portion of that page to a given email address. I am struggling as I don't know any kinda of programing very well. I thought maybe someone here may have seen an app that does this or would be able to throw a simple code together for me, or even would be able to direct me in the ways I should go to do so.

dugan 12-20-2011 07:14 PM

This is the implementation that immediately came to mind:

Code:

wget http://path/to/whatever.html
grep keyword whatever.html

(well, it downloads the page and checks for a keyword).

3ast 12-21-2011 04:38 PM

It also has to send an email containing part of that email.


All times are GMT -5. The time now is 05:58 PM.