Posts Tagged ‘digg’

Digg Clones

Saturday, February 2nd, 2008
Posted in Web • Tags:

The following are some open source Digg clones I’ve found. I only knew of two before, but the list has now doubled.

  • Pligg - The most popular Digg clone. Pligg is based on code written for Meneame by Ricardo Galli. I’ve noticed the the Pligg website, license and source links no longer mention Meneame or Ricardo Galli, which is unfortunate. The code has undergone quite a overhaul, but chances Pligg would of never existed in the first place without Ricardo Galli releasing the code for Meneame. However, I’m sure someone else would of written a open source Digg clone eventually.
  • Drigg - A module for Drupal that can make your site work like Digg
  • PHPDug - I haven’t tried this one, but its interesting that someone else made a Digg Clone
  • diggClone - This project seems abandoned

SimplePie and Digg’s RSS Feeds

Thursday, July 26th, 2007
Posted in Web Development • Tags: ,

Been playing with SimplePie some more and here is some code for dealing with Digg’s RSS feed. I included some stuff in comments that just shows how their namespaces look.


/*
<digg:diggCount>95</digg:diggCount>
<digg:submitter>
<digg:username>kilooneniner</digg:username>
<digg:userimage>http://digg.com/userimages/k/i/l/kilooneniner/medium9515.jpg</digg:userimage>
</digg:submitter>
<digg:category>Political News</digg:category>
<digg:commentCount>9</digg:commentCount>
*/
//DIGG NAMESPACES
$digg_count = $item->get_item_tags('http://digg.com/docs/diggrss/', 'diggCount');
$digg_comments = $item->get_item_tags('http://digg.com/docs/diggrss/', 'commentCount');
$digg_category = $item->get_item_tags('http://digg.com/docs/diggrss/', 'category');
$digg_submitter = $item->get_item_tags('http://digg.com/docs/diggrss/', 'submitter');
$digg_username = $digg_submitter[0]['child']['http://digg.com/docs/diggrss/']['username'];
$digg_userimage = $digg_submitter[0]['child']['http://digg.com/docs/diggrss/']['userimage'];
if (!empty($digg_count[0]['data']))
$data .= '<br /><span class="minor">' . $digg_count[0]['data'] . ' diggs &middot; ' . $digg_comments[0]['data'] . ' comments &middot; ' . $digg_category[0]['data'] . ' &middot; ' . $digg_username[0]['data'] . ' &middot; ' . $digg_userimage[0]['data'] . '</span>';

Using something like the following helps traverse the arrays to figure out how to get the data.

print_r($digg_submitter);//will show array to parse to get stuff

Top Ten Filters Needed for Digg

Thursday, July 5th, 2007
Posted in Web • Tags:

If you use Yahoo Pipes you might add some filters to Digg. As Digg has become more and more popular, more and more crap is getting to the front page. Even if you only use an RSS feed for just one category, people don’t put things where they belong. Just look at the design feed on Digg and you’ll see its mostly just cool pictures now. :/

10. steve jobs
9. brittney, brittney spears
8. paris, hilton, paris hilton
7. porn, pornography
6. digg, diggers
5. top ten, top 10, top ###
4. apple
3. pic, pics, picture, pictures, photo, photos, photograph, photographs
2. kevin rose
1. iphone

Digg UnBlocks Yahoo Pipes

Wednesday, May 23rd, 2007
Posted in Web • Tags:

I emailed Digg a couple of days ago, it seems they were blocking Yahoo Pipes from using their RSS feeds or something. Everything is working now again. :)

Top 10 Comment Cliches on Digg

Wednesday, May 2nd, 2007
Posted in Web • Tags:

Here you go, the top ten comments I see on digg.

10. dugg down for blogspam

9. _____ _____ no digg

8. _____ _____ your mom

7. site down already?

6. buried for _____

5. how is this blogspam?

4. duplicate story

3. diggmirror http://_____

2. _____ _____ _____ being on digg all day

1. 09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0

Yeah I had to add that last one ;). Don’t get me wrong I enjoy using Digg for fast tech news and cool links.