RSS feed with points, comments?

101 views
Skip to first unread message

Brian Conway

unread,
Mar 22, 2013, 2:23:13 PM3/22/13
to hnse...@googlegroups.com
I found an old post (https://groups.google.com/d/msg/hnsearch/pjy2HTmxGU4/TG3m79mvLr8J) suggesting that the two RSS feeds included points and comments, among other things. However, looking at those feeds now, I'm not seeing any of the changes mentioned.

Similar to that thread, I'm also looking to use the RSS feed as a simulated front page.

Thanks.

Brian Conway

unread,
Mar 24, 2013, 9:55:28 AM3/24/13
to hnse...@googlegroups.com
In the meantime, I've worked around it by stepping through all the results in the RSS feed and grabbing what I need, it's probably just a bit more work on the backend.

Andres Morey

unread,
Mar 25, 2013, 1:15:43 AM3/25/13
to hnse...@googlegroups.com
Hi Brian,

Sorry, there was a bug in the rss re-writer script due to HN's recent switch to HTTPS. It's fixed now:

--
You received this message because you are subscribed to the Google Groups "HNSearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hnsearch+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brian Conway

unread,
Mar 25, 2013, 8:15:49 AM3/25/13
to hnse...@googlegroups.com
Much appreciated. I will update to make use of those elements.

Brian Conway

unread,
Mar 25, 2013, 2:06:04 PM3/25/13
to hnse...@googlegroups.com
Is it expected that these fields will show up intermittently? For example (1 PM CDT), here's one that looks good:

<item>
      <title>How Criticizing in Private Undermines Your Team</title>
      <link>http://blogs.hbr.org/cs/2013/03/how_criticizing_in_private_und.html</link>
      <comments>https://news.ycombinator.com/item?id=5437510</comments>
      <hnsearch_id>5437510-ffbb3</hnsearch_id>
      <username>nikunjk</username>
      <create_ts>2013-03-25T15:31:21Z</create_ts>
      <num_comments>12</num_comments>
      <points>29</points>
      <description>&lt;a href="https://news.ycombinator.com/item?id=5437510"&gt;Comments&lt;/a&gt;</description>
      <guid isPermaLink="false">http://blogs.hbr.org/cs/2013/03/how_criticizing_in_private_und.html</guid>
    </item>

Here's an Ask HN that doesn't have them:

<item>
      <title>Ask HN: Have you ever been sued by your startup?</title>
      <link>https://news.ycombinator.com/item?id=5438040</link>
      <comments>https://news.ycombinator.com/item?id=5438040</comments>
      <description>&lt;a href="https://news.ycombinator.com/item?id=5438040"&gt;Comments&lt;/a&gt;</description>
      <guid isPermaLink="false">https://news.ycombinator.com/item?id=5438040</guid>
    </item>

And here's a non-HN-referencing URL that's missing them:

<item>
      <title>Show HN: Framebase.io, Video for Developers</title>
      <link>https://framebase.io/</link>
      <comments>https://news.ycombinator.com/item?id=5438241</comments>
      <description>&lt;a href="https://news.ycombinator.com/item?id=5438241"&gt;Comments&lt;/a&gt;</description>
      <guid isPermaLink="false">https://framebase.io/</guid>
    </item>

Thanks.


On Monday, March 25, 2013 12:15:43 AM UTC-5, andres wrote:

Andres Morey

unread,
Mar 27, 2013, 6:09:54 PM3/27/13
to hnse...@googlegroups.com
It should not be showing up intermittently. Are you still seeing the problem? I haven't seen it personally.

Andres

Brian Conway

unread,
Mar 27, 2013, 6:40:41 PM3/27/13
to hnse...@googlegroups.com
I am still seeing it, but changed my code to work around it. It only happens when a post is very new and then eventually corrects itself over time. The most recent posting that did it was:

2013-03-27 14:36:01.734 (my pull time, CDT)
PagerDuty is hiring their first visual designer
https://news.ycombinator.com/item?id=5451406

Andres Morey

unread,
Mar 27, 2013, 9:49:18 PM3/27/13
to hnse...@googlegroups.com
Looking at the code again, that's the expected behavior. The RSS feed is pulled from the Google Feeds API in real time but the HNSearch crawler is usually about ~5-15min behind HN in which case we don't have the data yet and can't mark it up with points and number of comments.

Andres
Reply all
Reply to author
Forward
0 new messages