Permalink
Browse files

Updated http-stream example to work, as reposrted in #11

  • Loading branch information...
disolovyov committed Feb 16, 2012
1 parent 3fe1cda commit 1b07cadb492adc295ea239a0c2c1292341fa11f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/http-stream.js
View
@@ -4,7 +4,7 @@ var XmlStream = require('../lib/xml-stream');
// Request an RSS for a Twitter stream
var request = http.get({
host: 'twitter.com',
- path: '/statuses/user_timeline/301879799.rss' // @pandalog
+ path: '/statuses/user_timeline/289849522.rss' // @dimituri
}).on('response', function(response) {
// Pass the response as UTF-8 to XmlStream
response.setEncoding('utf8');
@@ -15,7 +15,7 @@ var request = http.get({
// Change <title> child to a new value, composed of its previous value
// and the value of <pubDate> child.
item.title = item.title.match(/^[^:]+/)[0] + ' on ' +
- item.pubDate.replace(/ +[0-9]{4}/, '');
+ item.pubDate.replace(/ \+[0-9]{4}/, '');
});
// When <item>'s <description> descendant text is completely parsed,

0 comments on commit 1b07cad

Please sign in to comment.