{"id":13461868,"url":"https://github.com/phil-r/hackernewsbot","last_synced_at":"2025-07-08T02:38:38.786Z","repository":{"id":41729413,"uuid":"54268361","full_name":"phil-r/hackernewsbot","owner":"phil-r","description":":newspaper: Telegram bot that posts new hot stories from Hacker News to telegram channel","archived":false,"fork":false,"pushed_at":"2023-05-01T21:13:25.000Z","size":50,"stargazers_count":211,"open_issues_count":7,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-11T09:42:18.776Z","etag":null,"topics":["bot","hacker-news","telegram","telegram-bot","telegram-channel"],"latest_commit_sha":null,"homepage":"https://t.me/hacker_news_feed","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phil-r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-03-19T13:52:15.000Z","updated_at":"2025-05-11T05:21:43.000Z","dependencies_parsed_at":"2024-02-17T10:44:52.563Z","dependency_job_id":null,"html_url":"https://github.com/phil-r/hackernewsbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phil-r/hackernewsbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil-r%2Fhackernewsbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil-r%2Fhackernewsbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil-r%2Fhackernewsbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil-r%2Fhackernewsbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phil-r","download_url":"https://codeload.github.com/phil-r/hackernewsbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil-r%2Fhackernewsbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264183182,"owners_count":23569668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","hacker-news","telegram","telegram-bot","telegram-channel"],"created_at":"2024-07-31T12:00:25.756Z","updated_at":"2025-07-08T02:38:38.746Z","avatar_url":"https://github.com/phil-r.png","language":"Python","funding_links":[],"categories":["Examples"],"sub_categories":["Python"],"readme":"# hackernewsbot\nTelegram bot that posts new hot stories from Hacker News to [telegram channel](https://telegram.me/hacker_news_feed)\n\n## Backend\nBot runs on [Google App Engine](https://cloud.google.com/appengine/)\n\n## Hacker News API\nBot uses [Hacker News API](https://github.com/HackerNews/API)\n\nIt loads [top stories](https://hacker-news.firebaseio.com/v0/topstories.json) every 10 minutes and posts any story that reached *100+* score([adjusted for inflation](https://instruments.digital/inflation-adjusted-hn/))\n\n## Telegram API\nBot uses [Telegram Bot API](https://core.telegram.org/bots/api) to post messages to the [telegram channel](https://telegram.me/hacker_news_feed) with [sendMessage](https://core.telegram.org/bots/api#sendmessage) request\n\n## URL shortening\nBot used [bit.ly](https://dev.bitly.com/) and [goo.gl](https://developers.google.com/url-shortener/v1/getting_started) for url shortening, but now it uses internal shortener\n\n## How to run your own `hackernewsbot`\n- Clone this project\n- Run `pip install -r requirements.txt -t lib/` to install dependencies\n- Download and install [Google Cloud SDK](https://cloud.google.com/appengine/docs/standard/python/download)\n- Register your app in [Google Cloud console](https://console.cloud.google.com)\n- Register your bot via [BotFather](https://telegram.me/BotFather)\n- Rename `sample_app.yaml` to `app.yaml` and\n  - replace `yourappid` with your App engine app id\n  - replace `YOUR_TELEGRAM_BOT_TOKEN` with your bot token\n- Possibly you'll want to create your own channel and your bot as an admin. Also change `@hacker_news_feed` in `database.py` to your channel id\n- Run `gcloud app deploy app.yaml --project [YOUR_PROJECT_NAME]` in the project folder\n- Run `gcloud app deploy cron.yaml --project [YOUR_PROJECT_NAME]` in the project folder\n\n## Local development\nTo run server locally you can use [`dev_appserver.py`](https://cloud.google.com/appengine/docs/standard/python/tools/using-local-server):\n\n```\ndev_appserver.py .\n```\n\n\n## See also\n- [designernewsbot](https://github.com/phil-r/designernewsbot)\n- [asciifacesbot](https://github.com/phil-r/asciifacesbot)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphil-r%2Fhackernewsbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphil-r%2Fhackernewsbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphil-r%2Fhackernewsbot/lists"}