Live data from Hacker News

Ask PG: Link to comments in RSS

news.ycombinator.com

11–20 of 23 posts

Re: Ask PG: Link to comments in RSS

#11
post #5

I brought this up a while ago here: http://news.ycombinator.com/item?id=35363 I was using Google Reader, and there was no comments link, but have since switched to NetNewsWire (OS X) where everything works correctly. It doesn't look like it'll change.

That's really odd. NNW for me doesn't show links, and never has...hmm, too bad it doesn't keep track of when I subscribe to feeds, but I'm fairly sure that's how it's always been for me.

Re: Ask PG: Link to comments in RSS

#12
post #10
post #9

There are comment links in the rss feed. Some readers show them and some don't. If anyone can give me the exact syntax that would work in the latter, I'll try it.

Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 http://news.ycombinator.com/item?id=112684 <a href="http://news.ycombinator.com/item?id=112684">comments</a>

Or like this:

  
    Ask PG: Link to comments in RSS
    http://news.ycombinator.com/item?id=112684  
    Comments]]>
  

Re: Ask PG: Link to comments in RSS

#13
post #12
post #10

Earlier quoted context omitted.

Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 http://news.ycombinator.com/item?id=112684 <a href="http://news.ycombinator.com/item?id=112684">comments</a>

Or like this: Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 Comments ]]>

Ok, does it work now? Here's what I'm doing:

  (def rss-stories (stories)
    (tag (rss version "2.0")
      (tag channel
        (tag title (pr this-site*))
        (tag link (pr site-url*))
        (tag description (pr site-desc*))
        (each s stories
          (tag item
            (let comurl (+ site-url* (item-url s))
              (tag title    (pr (eschtml (s 'title))))
              (tag link     (pr (if (blank (s 'url))
                                    comurl
                                    (eschtml (s 'url)))))
              (tag comments (pr comurl))
              (tag description
                (pr ""))))))))

Re: Ask PG: Link to comments in RSS

#14
post #13
post #12

Earlier quoted context omitted.

Or like this: Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 Comments ]]>

Ok, does it work now? Here's what I'm doing: (def rss-stories (stories) (tag (rss version "2.0") (tag channel (tag title (pr this-site*)) (tag link (pr site-url*)) (tag description (pr site-desc*)) (each s stories (tag item (let comurl (+ site-url* (item-url s)) (tag title (pr (eschtml (s 'title)))) (tag link (pr (if (blank (s 'url)) comurl (eschtml (s 'url))))) (tag comments (pr comurl)) (tag description (pr " "))))…

It's working in akregator now (wasn't working before).

Re: Ask PG: Link to comments in RSS

#15
post #6

I'm using Vienna (OS X) which as far as I can tell works perfectly for every one of the other 200+ feeds I subscribe to - but not for Hacker News. It looks like simply replacing the tag with a description tag containing (only) a hyperlink to the comments page would fix the problem. Many readers ignore the tag.

Whatever's up now is working with Vienna. I see a comments link.

Re: Ask PG: Link to comments in RSS

#16
post #13
post #12

Earlier quoted context omitted.

Or like this: Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 Comments ]]>

Ok, does it work now? Here's what I'm doing: (def rss-stories (stories) (tag (rss version "2.0") (tag channel (tag title (pr this-site*)) (tag link (pr site-url*)) (tag description (pr site-desc*)) (each s stories (tag item (let comurl (+ site-url* (item-url s)) (tag title (pr (eschtml (s 'title)))) (tag link (pr (if (blank (s 'url)) comurl (eschtml (s 'url))))) (tag comments (pr comurl)) (tag description (pr " "))))…

It works in Google Reader!

Thanks!

Re: Ask PG: Link to comments in RSS

#17
post #13
post #12

Earlier quoted context omitted.

Or like this: Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 Comments ]]>

Ok, does it work now? Here's what I'm doing: (def rss-stories (stories) (tag (rss version "2.0") (tag channel (tag title (pr this-site*)) (tag link (pr site-url*)) (tag description (pr site-desc*)) (each s stories (tag item (let comurl (+ site-url* (item-url s)) (tag title (pr (eschtml (s 'title)))) (tag link (pr (if (blank (s 'url)) comurl (eschtml (s 'url))))) (tag comments (pr comurl)) (tag description (pr " "))))…

Bloglines now shows the link twice, one from and one from .

Re: Ask PG: Link to comments in RSS

#18
post #17
post #13

Earlier quoted context omitted.

Ok, does it work now? Here's what I'm doing: (def rss-stories (stories) (tag (rss version "2.0") (tag channel (tag title (pr this-site*)) (tag link (pr site-url*)) (tag description (pr site-desc*)) (each s stories (tag item (let comurl (+ site-url* (item-url s)) (tag title (pr (eschtml (s 'title)))) (tag link (pr (if (blank (s 'url)) comurl (eschtml (s 'url))))) (tag comments (pr comurl)) (tag description (pr " "))))…

Bloglines now shows the link twice, one from and one from .

Argh. Can anyone tell me a format that will work on all readers? Is the answer to ditch the comments field?

Re: Ask PG: Link to comments in RSS

#19
post #13
post #12

Earlier quoted context omitted.

Or like this: Ask PG: Link to comments in RSS http://news.ycombinator.com/item?id=112684 Comments ]]>

Ok, does it work now? Here's what I'm doing: (def rss-stories (stories) (tag (rss version "2.0") (tag channel (tag title (pr this-site*)) (tag link (pr site-url*)) (tag description (pr site-desc*)) (each s stories (tag item (let comurl (+ site-url* (item-url s)) (tag title (pr (eschtml (s 'title)))) (tag link (pr (if (blank (s 'url)) comurl (eschtml (s 'url))))) (tag comments (pr comurl)) (tag description (pr " "))))…

Yep - another confirm - comment linked working in google reader now - thanks!

Re: Ask PG: Link to comments in RSS

#20
post #18
post #17

Earlier quoted context omitted.

Bloglines now shows the link twice, one from and one from .

Argh. Can anyone tell me a format that will work on all readers? Is the answer to ditch the comments field?

I also see them twice, but it doesn't bother me. Just leave it as it is.
Post reply on HN