PDA

View Full Version : FF XML counter


llbbl
04-15-2005, 06:20 AM
If you haven't checked their website recently. They just passed 45 million downloads ..... !!! So grads to them and to everyone who is using the best browser out there!

If you want to have a feed of the XML counter here it is in Perl. On the link they have some other implementations of it.

http://www.spreadfirefox.com/?q=node/view/13612

#!D:/Perl/bin/perl
#Part of the SFx Blogware Project:
# simple RSS Reader for SFx Counter

use LWP::UserAgent;
use XML::RSS;

my $RSSURL = 'http://feeds.spreadfirefox.com/downloads/firefox';

my $ua = LWP::UserAgent->new;
$ua->agent("SFx Blogware/.01");

$response = $ua->get($RSSURL);
if (!$response->is_success) { die($response->status_line, "\n"); }

my $content = $response->content(default_charset => "UTF-8", raise_error => TRUE, ref => TRUE);

my $rss = new XML::RSS;
$rss->parse($content);

print "Content-type: text/plain\n\n";
print $rss->{'items'}->[0]->{'description'};

Here is a cool FF image I found :)

Tychovk
04-16-2005, 12:32 AM
Great, isn't it? and rising, and rising ;)

But with more users, more people trying to find holes in the FF security... but with good support they'll get far.

http://img11.exs.cx/img11/1623/firefox4xk.gif