The Artima Developer Community
Sponsored Link

Java Buzz Forum
Speaking of RSS...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Speaking of RSS... Posted: Mar 12, 2005 8:08 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Speaking of RSS...
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

An unnamed JavaBlogger posted about his JavaBlogs pre-processor, so I figured I'd post about my bloglines monitoring script:

#!/usr/bin/env ruby

require 'net/http'
require 'rexml/document'
require 'stringio'

LOGIN = 'bloglines_account@example.com'
PASS = 's3kr3t_bl0gl1n3s_p4ssw0rd'

Net::HTTP.start('rpc.bloglines.com') do |http|
  request = Net::HTTP::Get.new('/getitems?s=0&n=0')
  request.basic_auth LOGIN, PASS
  response = http.request(request)
  REXML::Document.new(response.body).elements.each('//channel') do |channel|
    puts "#{channel.elements['title'].text}"
    channel.each_element('item') do |item|
      puts "  #{item.elements['title'].text}"
    end
  end
end

Which just does a nicely formatted title-by-blog listing of your unread stuff on bloglines. Combined with GeekTool it's pretty handy =)

Read: Speaking of RSS...

Topic: Blojsom Plugin - Java Beautifier Previous Topic   Next Topic Topic: Fear teh Aspects!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use