|LJ RSS-harvester identification
||[Dec. 29th, 2003|02:20 pm]
|||||Grieg - "Album-leaf"||]|
I am new here!
I am Torgo X,
writer of writings,
and maker of things
Now, as someone who provides a good dozen RSSs that end up as some
I have one request that to make of the LJ code gods:
I wish the LJ feed-harvester would identify itself as something
a bit more explicit than just "libwww-perl/5.63", so that when I
look at my httpd logs, I can have better information about what hits are
coming from where.
Here's how to do this:
Right after the line in the Perl code where the harvester creates a new
LWP::UserAgent object, add this statement (assuming the object is in
a variable called $ua):
# XXXX or however you get the LJ version number
. " ( " . join(' ; ',
# XXXX or whatever the webmaster address is
# XXXX or however you interpolate the synd's address
# Any other salient components here...
# Like maybe the number of subscribers?
# And finally the LWP version:
$ua->can('_agent') ? $ua->_agent : $ua->agent
) . " )");