Remember Me?

New Script: StatsBurner (Feedburner Statistics)

Oct 6th 2009, 11:10

Miles

Administrator

Joined: Sep 7th 2009, 15:43
Total Topics: 15
Total Posts: 114
I started on this script back in December of 2007. It worked back then but I always wanted to create a PHP 4 version as well but never got around to it. I found it recently and fixed it up with more PHP 5 goodness and fixed all the Awareness API errors. Its pretty simply, it just grabs your statistics over certain dates and ranges.

StatsBurner v2.2
http://www.milesj.me/resources/script/statsburner

  • Grabs statistics from Feedburners Awareness API
  • Grabs the circulation count and hits count
  • Settings to use the cURL module
  • Settings to check for overlapping date ranges / duplicate dates
  • Ability to define date ranges and discrete dates
  • Can build local XML files for faster parsing (Good with cron jobs)
  • Utilizes a singleton pattern


Quick example: http://feeds.feedburner.com/starcraft

$stats = StatsBurner::getInstance()->getStats('starcraft');

Array (
    [id] => t4frmvjinetsgepjjci8m5f5i8
    [uri] => starcraft
    [api] => https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=starcraft&dates=2009-09-05,2009-10-05
    [circulation] => 1003
    [hits] => 6682
    [downloads] => 0
    [reach] => 174
    [dates] => 2009-09-05,2009-10-05
)

CakePHP Baker, PHP Guru and jQueryfier