Crate hnapi

Source
Expand description

Use this crate to query stories from HackerNews.

For now, it supports the following operations:

Refer to their respective documentations to see usage examples.

Note: information is obtained by scraping the HackerNews website. The reason this crate does not use the official API is that it does not provide a convenient way to get all the comments for a given story, and only allows read operations.

Structs§

  • Comment posted on a story. A comment can have a parent if it is a reply to another comment, and can have children.
  • Information about a story.
  • Combination of a story, its HTML content, and its comments.
  • Information about a user.

Enums§

Functions§