Automatically add HN articles to Instapaper.
By default, HNstapaper automatically selects articles that are over 1000 words
in length and have a minimum HN score of 200. These values are configurable on
the command line with the -s
and -w
options respectively.
The first run of HNstapaper will take a long time since it has to remotely fetch the data for 500 stories. Subsequent runs will be much faster since this data will be available locally.
git clone https://github.com/rconradharris/HNstapaper.git pip install -r requires.txt
Fetch 5 newest articles that meet criteria of 300 points and 2000 words:
./HNstapaper -u <YOUR-INSTAPAPER-USERNAME> -p <YOUR-INSTAPAPER-PASSWORD> -v --limit=5 --score=300 --words=2000
You can cron this up to run everyday at 9:00 by adding the following lines to your crontab:
0 9 * * * <PATH-TO-REPO>/HNstapaper -u <YOUR-INSTAPAPER-USERNAME> -p <YOUR-INSTAPAPER-PASSWORD>
- requests
- goose-extractor