8000 GitHub - FrancescoPaoloL/FetchHN: This project is a simple script that automatically searches for relevant articles on Hacker News based on a list of keywords.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This project is a simple script that automatically searches for relevant articles on Hacker News based on a list of keywords.

License

Notifications You must be signed in to change notification settings

FrancescoPaoloL/FetchHN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FetchHN

This project is a simple script that automatically searches for relevant articles on Hacker News based on a list of keywords.

Why I done that? I used to check Hacker News almost every day. Then I discovered the Hacker News API, which allows us to fetch the latest news programmatically. So I thought: why not automate my search using keywords? And that want I've done!

How it works? Keywords are stored in a configuration file; every time you run the script, it searches Hacker News for the most relevant articles based on those keywords and (optionally) saves results to a JSON file.

We use the official Firebase Hacker News API to retrieve stories.

Here's an example of the data returned for a story. You can access items (stories, comments, etc.) by their ID, for example: https://hacker-news.firebaseio.com/v0/item/9224.json

{
    "by": "dhouston",
    "descendants": 71,
    "id": 8863,
    "kids": [9224, 8917, 8884, ...],
    "score": 104,
    "time": 1175714200,
    "title": "My YC app: Dropbox - Throw away your USB drive",
    "type": "story",
    "url": "http://www.getdropbox.com/u/2/screencast.html"
}

This the output:

image_alt

Python

Languages and Tools

python

Requirements

aiohttp==3.11.16
PyYAML==6.0.2

Test coverage

TODO

License

This project is licensed under the MIT License - see the LICENSE.md file for details


Connect with me

francescopaololezza francescopaololezza

About

This project is a simple script that automatically searches for relevant articles on Hacker News based on a list of keywords.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0