Skip to content

mwermuth/hn-email-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

#Hacker News - Email Crawler

Fetches the frontpage of Hacker News (http://news.ycombinator.com) and will send a mail to you in intervalls you specify.

Additionally each Link in every Email gets an Instapaper "Read it Later" Button next to it. If available other RiL Services can be supported.

Following gems are needed:

gem install ruby-hackernews gmail mail uri

##Overview Currently Email delivery works for Gmail and SMTP, should be easy to integrate your own. Just fill out the Variables at the head of the script:

First specify which Mail service you want to use:

service ="gmail" **or** "smtp"

Then continue with the following:

to_mail = "your receiver mail address"
from_mail = "your sender mail address"
subject = "your mail subject"

if you use Gmail:

from_pass = "your password for the sender address"

If you use SMTP:

server = "your mail server domain"

##Cron Job To let the whole process work automatically for you, just put this script onto your server and create a new cronjob.

Example:

crontab -e
0 18 * * * ruby /opt/hncrawler/crawler.rb

This will call the script every day at 18.00.

##Result Your Result mail should look like the following: HN Daily Mail

About

Hacker News Frontpage to Email incl. Read it Later Links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages