ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Looking for a plugin for Twitter & Feedburner counter

February 24, 2011 6:55am

Subscribe [2]
  • #1 / Feb 24, 2011 6:55am

    macpro

    85 posts

    Hi volx,

    I’m looking for a plugin to get the Twitter & Feedburner counter as simple text. But most important is, the script should store the counter in the MySQL DB and refresh it once a day. Because of speed optimization.

    And since I don’t have any clue about PHP & MySQL, I’m looking for help.

    I found these basic scripts for Twitter and for Feedburner:

    <?php
        $twit = file_get_contents('http://twitter.com/users/show/USERNAME.xml');
        $begin = '<followers_count>'; $end = '</followers_count>';
        $page = $twit;
        $parts = explode($begin,$page);
        $page = $parts[1];
        $parts = explode($end,$page);
        $tcount = $parts[0];
        if($tcount == '') { $tcount = '0'; }
        echo ''.$tcount.'';                             
    ?>
    <?php
        $url = file_get_contents('https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=YOURFEEDHERE');
        $begin = 'circulation="'; $end = '"';
        $page = $url;
        $parts = explode($begin,$page);
        $page = $parts[1];
        $parts = explode($end,$page);
        $fbcount = $parts[0];
        if($fbcount == '') { $fbcount = '0'; }
        echo ''.$fbcount.'';
    ?>


    Thank you
    Stefan

  • #2 / Feb 24, 2011 9:42am

    macpro

    85 posts

    After a bit of research I came across these 2 plugins, they might work

    Datagrab http://brandnewbox.co.uk/products/details/datagrab
    and RESTful http://philsturgeon.co.uk/code/expressionengine/rest

    both looking good, but need to test them first, before I pay for them. Hmm… Datagrab looks a bit better, since I can call it via cron!

    hmmm… Can some one provide some pictures of Datagrab here to get it better to understand?


    Thanks
    Stefan

  • #3 / Feb 24, 2011 3:48pm

    Ingmar

    29245 posts

    Thanks. Since this is not an EE issue as such I am moving this to “General”.

  • #4 / Feb 24, 2011 4:21pm

    Ryan Battles

    63 posts

    I’ve used DataGrab before and it has worked well.  The only catch is that without good data pruning, you’ll quickly fill your database with entries from the RSS feeds that you grab.  If you are just aggregating one or two, it shouldn’t be an issue.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases