|
/SW/research:
Do-It-Yourself RSS
Ever cursed a site you want to check periodically for not having an RSS feed? cron / msmtp / web2mail.com offers a slightly crude solution -- crude because you get the whole page every time, not just new content.
web2mail.com provides a means of receiving website content via e-mail. I use msmtp to send the request to web2mail.com via one of my e-mail accounts, and cron to specify the frequency and issue the e-mail.
(I first tried to send the e-mail directly from my laptop mail server to web2mail.com, and web2mail.com did not like my e-mail and bounced it. Thus the msmtp strategy.)
I setup one of my e-mail accounts in ~/.msmtprc as follows:
# 163.com account 163 host smtp.163.com auth plain from user@163.com user user password password
Then in a terminal issue "crontab -e" and add the following entry:
25 14 * * 1,4 echo -e "Subject: http://www.website-you-want-sent.com/ \n\n This is message body" | msmtp -a 163 -v www@web2mail.com
which grabs the web page on the first and fourth days of the week at 14:25.
posted at: 02:44 | path: /SW/research | permanent link to this entry