[GH-ISSUE #79] Why the results aren't the same as in the web? #22

Closed
opened 2026-03-14 12:25:20 +03:00 by kerem · 9 comments
Owner

Originally created by @ftpd on GitHub (Aug 25, 2022).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/79

Originally assigned to: @aome510 on GitHub.

03013cf918d23c53b2c6ad0240a366111f7d66e4

I've decided to give hackernews-TUI a chance today but right after running it I've seen it shows different stories than they are on the web. Why? Do I use it somehow wrong?

Originally created by @ftpd on GitHub (Aug 25, 2022). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/79 Originally assigned to: @aome510 on GitHub. ![03013cf918d23c53b2c6ad0240a366111f7d66e4](https://user-images.githubusercontent.com/1644381/186717079-29f95097-e3c4-4f70-b69c-3fcd6f53c102.png) I've decided to give hackernews-TUI a chance today but right after running it I've seen it shows different stories than they are on the web. Why? Do I use it somehow wrong?
kerem 2026-03-14 12:25:20 +03:00
Author
Owner

@aome510 commented on GitHub (Aug 27, 2022):

For tabs other than front page, it can either show the stories sorted by date or by points because HN Algolia API is used for that. front page stories are fetched using HN official API. This is why ask stories showed in the app are different from the web.

This can be resolved by using a mix of both APIs for ask,show,etc stories.

<!-- gh-comment-id:1229101211 --> @aome510 commented on GitHub (Aug 27, 2022): For tabs other than **front page**, it can either show the stories sorted by date or by points because [HN Algolia API](https://hn.algolia.com/api) is used for that. **front page** stories are fetched using [HN official API](https://github.com/HackerNews/API). This is why ask stories showed in the app are different from the web. This can be resolved by using a mix of both APIs for ask,show,etc stories.
Author
Owner

@aome510 commented on GitHub (Sep 5, 2022):

Hi @ftpd, I've updated the app in #80 to show shown_hn and ask_hn stories in the same order as in the web. Can you try to the latest build of main to confirm that it works?

<!-- gh-comment-id:1236526414 --> @aome510 commented on GitHub (Sep 5, 2022): Hi @ftpd, I've updated the app in #80 to show `shown_hn` and `ask_hn` stories in the same order as in the web. Can you try to the latest build of `main` to confirm that it works?
Author
Owner

@ftpd commented on GitHub (Sep 18, 2022):

Sorry, I was on holidays.

I still see some differences.

<!-- gh-comment-id:1250227205 --> @ftpd commented on GitHub (Sep 18, 2022): Sorry, I was on holidays. I still see some differences.
Author
Owner

@aome510 commented on GitHub (Sep 18, 2022):

Sorry, I was on holidays.

No worries.

I still see some differences.

Do u have any pictures of such differences? Mine is similar

image
<!-- gh-comment-id:1250340358 --> @aome510 commented on GitHub (Sep 18, 2022): > Sorry, I was on holidays. No worries. > I still see some differences. Do u have any pictures of such differences? Mine is similar <img width="2559" alt="image" src="https://user-images.githubusercontent.com/40011582/190917116-061cb5be-bdb4-484a-8d43-cc5d7152452c.png">
Author
Owner

@ftpd commented on GitHub (Sep 18, 2022):

This is how it looks for me:
ask

And frontpage looks fine:
main

<!-- gh-comment-id:1250385400 --> @ftpd commented on GitHub (Sep 18, 2022): This is how it looks for me: ![ask](https://user-images.githubusercontent.com/1644381/190927779-1b2d9fb1-77af-4a5d-9b99-130cacb2bd43.jpg) And frontpage looks fine: ![main](https://user-images.githubusercontent.com/1644381/190927792-ba9249e3-307f-4b92-8786-39da8fed50a6.jpg)
Author
Owner

@aome510 commented on GitHub (Sep 18, 2022):

Looks like you're using the old build of hackernews_tui, as the ask-hn stories are still sorted by date. Can u try it with the latest build from main (the change hasn't been released into a new version):

git clone https://github.com/aome510/hackernews-TUI.git && cd hackernews-TUI
cargo run
<!-- gh-comment-id:1250414356 --> @aome510 commented on GitHub (Sep 18, 2022): Looks like you're using the old build of `hackernews_tui`, as the `ask-hn` stories are still sorted by date. Can u try it with the latest build from `main` (the change hasn't been released into a new version): ```shell git clone https://github.com/aome510/hackernews-TUI.git && cd hackernews-TUI cargo run ```
Author
Owner

@ftpd commented on GitHub (Sep 19, 2022):

Oh, I've just assumed there is a new release ;-) I will build it, but no sooner than today's evening (CEST). I will let you know, sorry for the inconvenience.

<!-- gh-comment-id:1250617692 --> @ftpd commented on GitHub (Sep 19, 2022): Oh, I've just assumed there is a new release ;-) I will build it, but no sooner than today's evening (CEST). I will let you know, sorry for the inconvenience.
Author
Owner

@ftpd commented on GitHub (Oct 3, 2022):

Aaaaaaaand I forgot.

Now I've build from today's master - it works fine. Thanks, I will wait for the new release.

<!-- gh-comment-id:1265684369 --> @ftpd commented on GitHub (Oct 3, 2022): Aaaaaaaand I forgot. Now I've build from today's master - it works fine. Thanks, I will wait for the new release.
Author
Owner

@aome510 commented on GitHub (Oct 3, 2022):

Aaaaaaaand I forgot.

Now I've build from today's master - it works fine. Thanks, I will wait for the new release.

Great. Thanks for the confirmation. I'll release a new version soon

<!-- gh-comment-id:1265798399 --> @aome510 commented on GitHub (Oct 3, 2022): > Aaaaaaaand I forgot. > > Now I've build from today's master - it works fine. Thanks, I will wait for the new release. Great. Thanks for the confirmation. I'll release a new version soon
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hackernews-TUI#22
No description provided.