Skip to main content

sopel-hackernews

Hacker News plugin for Sopel.

Development status

The current version is more or less stable, but is still considered beta or pre-1.0 due to missing planned features and lack of testing for edge cases. See plans for 1.0 at https://github.com/sopel-irc/sopel-hackernews/issues/3

We welcome contributions from anyone who feels like implementing something from the 1.0 "wishlist", as well as bug reports and feature suggestions.

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-hackernews

Configuring

sopel-hackernews supports Sopel's config wizard:

$ sopel-plugins configure hackernews

Available settings are as follows:

  • relative_timestamps — whether timestamps will be "humanized" like "2 days, 3 hours ago" (the default) or shown as absolute values

Usage

Links to Hacker News items are expanded automatically.

You can search for a link on HN using the .rhn command:

.rhn https://somecool.site/that/posted/an/article/

Credits

Loosely based on dasu's hn.py module, which was licensed as "literally do whatever you want, i'm not liable for anything lol". Thank you for the springboard!

Changelog

0.2.0

Added:

  • sopel-plugins configure wizard support (#17)
  • Handle user links (#16)
  • Basic formatting parser (#15, #18, #19)
  • Differentiation of polls from regular stories (#14)

Housekeeping:

  • Require Sopel 8 + Python 3.8 or higher (#11)
  • Future-proof package license metadata (#12)
  • Automate PyPI release publishing (#13)

0.1.0

Initial release. Considered beta, but largely functional.

Metadata

Release files for sopel-hackernews 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sopel-hackernews 0.2.0
File Size Uploaded
sopel_hackernews-0.2.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-hackernews 0.2.0
File Interpreter ABI Platform
sopel_hackernews-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / sopel_hackernews-0.2.0.tar.gz

Download URL sopel_hackernews-0.2.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc67ae841ea8ec4b110d62ea59a109a1dd629eb205f7d74183ec54dbb5729f26
BLAKE2b-256 checksum
How to use checksums
240b792a25261edce4c4f85263049ac8521838efd1a2c88fa318902fee2da70c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2026.

Transparency log

Release files / sopel_hackernews-0.2.0-py3-none-any.whl

Download URL sopel_hackernews-0.2.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4addecd9bfff7917f03b135c4cb587c861c86f61b18784b463c019075bd46c04
BLAKE2b-256 checksum
How to use checksums
c04d32dc9a7b7f686a04ac1a340eb9b494111719fc853e45f176dbff843d7d18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page