Daemon that exposes an RSS feed containing any stories that match your list of queries.
- Create in your home folder (C:\Users\YOUR_USERNAME) a file called ".hackernewsdrc".
Replace the queries in the example below with whatever keywords you want the daemon to look for
{
"queries": [ ".NET", "C#", "Microsoft", "CLR", "F#", "Mono" ],
"host": "127.0.0.1",
"port": 5555
}
- Download the latest release and extract the executable
- Move the executable to the startup application folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup)
- Create in your home folder (/home/YOUR_USERNAME) a file called ".hackernewsdrc".
Replace the queries in the example below with whatever keywords you want the daemon to look for
{
"queries": [ ".NET", "C#", "Microsoft", "CLR", "F#", "Mono" ],
"host": "127.0.0.1",
"port": 5555
}
- Download the binary
cd ~
curl -JOL "https://github.com/somegenericdev/hackernewsd/releases/download/v1.0.2/hackernewsd-v1.0.2-linux64.zip" && unzip hackernewsd-v*-linux64.zip && sudo mv hackernewsd /bin/hackernewsd
chmod +x /bin/hackernewsd
chown $USER:$USER /bin/hackernewsd
- Create a systemd service
cd /etc/systemd/system
sudo touch hackernewsd.service
sudo tee -a hackernewsd.service > /dev/null <<EOT
[Service]
Type=simple
ExecStart=$HOME/hackernewsd
WorkingDirectory=$HOME
Restart=always
RestartSec=5
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=%n
EOT
sudo systemctl start hackernewsd
sudo systemctl enable hackernewsd
Add the following two feeds to your RSS reader of choice:
http://127.0.0.1:5555/feed.xml
http://127.0.0.1:5555/feed_hn.xml
feed.xml will point to the URL of the stories (usually an external blog), while feed_hn.xml will point to the Hackernews URL itself.
- Install the dependency list
pip install -r requirements.txt
- Install pyinstaller
pip install -U pyinstaller
- Build the project with pyinstaller
pyinstaller --noconsole --onefile src/app.py
