You are hereBlogs / David Grant's blog / Generate Custom digg.com Feed

Generate Custom digg.com Feed


By David Grant - Posted on 25 October 2006

I found a really neat site that can generate custom feeds. I really wanted a way to not only get a feed of the most popular articles today on digg, but also have links directly to the dugg article, not to the digg page (sorry digg).

This site called RSSxl Beta could do it. I entered:

  • Page URL: http://www.digg.com/view/all/popular/today
  • Start String: <div class="news-body">
  • Start Item String: <h3 id="title.*?">
  • End Item String: <div class="news-details">
  • Start Description String: <p>
  • End Description String: </p>
  • Link Number: 1

That will give you a nice feed of the most recent 9 items on visible at http://www.digg.com/view/all/popular/today. The only downside is that it only displays 9. I am thinking I might write my own script to do this in python using a similar method to that done by RSSxl Beta.

Update: Just modified the "start item string" a bit. Didn't realize you could use regex.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <s> <img>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Insert Google Map macro.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • You may use [view:name=display=args] tags to display views.

More information about formatting options

CAPTCHA
Sorry I had to add this test to combat the spam problem.