digg, featured

Using the Digg API06 Apr

Digg’s new API is impressive. Incorporating your digg user account activity or your domain’s popular posts into your blog or using it as part of a micro blogging strategy is a snap. The easiest way I have found is to use Nick Halstead’s Simple Digg API Usage script. This script doesn’t require PEAR and it works on PHP 4 & 5.

Digg User Lookup

The Basics

To get started, you need to create (as in ‘out of thin air’) an application key and a user agent. There is no application key signup like Google or Youtube, however the application key you choose should meet the following requirements:

from the digg api wiki
The value of the appkey argument must be a valid absolute URI (see IETF RFC 2396) that identifies the application making the request. The URI might point to:

  • The application itself, if it’s a web application.
  • A web page describing the application.
  • A web page offering the application for download.
  • The author’s web site.

Html

The html for the form to display to request digg user name.

<form action="" method="post">
<table border="0">
  <thead>
    <tr>
      <td colspan="2">User Lookup</td>
    </tr>
  </thead>
<tbody>
  <tr>
    <td>User Name</td>
    <td>
  <input maxlength="50" name="uid" size="25" type="text" /></td>
  </tr>
  <tr>
    <td></td>
    <td><input name="submit" type="submit" value="submit" /></td>
  </tr>
</tbody>
</table>
</form>

Code

The backend code to function the submit request

decode($response);
        foreach($decoded->users as &$user) {
             // $user = $decoded->users;
                $name = $user->name;
                $icon = $user->icon;
                $registered = $user->registered;
                $profileviews = $user->profileviews;
                              function timestamp_to_date ($registered)
                              {
                              $date = date ('m-d-Y' , $registered);
                              echo $date;
                              }
                echo "<div id=\"archivebox\">";
                echo "<h2><img src="\" alt="" />";
                echo "$name";
                echo "User Since: ";
                timestamp_to_date ($registered);
                echo "";
                echo "Profile Views: $profileviews ";
                echo "</h2><h3>User Links</h3>";
                echo "<ul>";
                }
                foreach($user->links as $link) {
                $href = $link->href;
                $description = $link->description;
                echo "<li><a href="$href">$description</a></li>";
                }
                echo "</ul>";
                echo "</div>";

        } else {             //form hasn't been submitted
        $user = "elebrio";
	require("JSON.php");
	ini_set('user_agent', 'ic/1.0');
	$appkey = 'http://indexedcontent.com';
        $response = file_get_contents("http://services.digg.com/user/$user?appkey=$appkey&type=json");
        $json = new Services_JSON();
	$decoded = $json->decode($response);
        foreach($decoded->users as &$user) {
             // $user = $decoded->users;
                $name = $user->name;
                $icon = $user->icon;
                $registered = $user->registered;
                $profileviews = $user->profileviews;
                              function timestamp_to_date ($registered)
                              {
                              $date = date ('m-d-Y' , $registered);
                              echo $date;
                              }
                echo "<div id=\"archivebox\">";
                echo "<h2><img src="\" alt="" />";
                echo "$name";

                echo "User Since: ";
                timestamp_to_date ($registered);
                echo "";
                echo "Profile Views: $profileviews ";
                echo "</h2><h3>User Links</h3>";
                echo "<ul>";
                }
                foreach($user->links as $link) {
                $href = $link->href;
                $description = $link->description;
                echo "<li><a href="$href">$description</a></li>";
                }
                echo "</ul>";
                echo "</div>";
		}
?>

In order to get this code working on your site, you will need to change two variables.

  • appkey - replace with your domain
     $appkey ='http://indexedcontent.com';
    
  • user agent
     ini_set('user_agent', 'ic/1.0');
    

    ic/1.0 is my site’s current user agent. You can basically name this whatever you want.

Additional Resources

digg, featured, smo

Is the DIGG experience worth it ?26 Feb

There are a lot of debates when it comes to Digg and people like expressing their point of view no doubt about it. but when we talk about the Digg side effects we are talking about articles who reach the first page. Of course Digg has it’s own algorithm when it comes to ranking a page high but what could really happen if we were to have articles on the first page ?

Some people say that this would be some sort of bad luck because the traffic doesn’t convert well and certainly your site will crash due to high traffic (yea right) …

I think there are way many better (if not only) advantages for your site if you get articles on the first page of digg because:

Seo Advantages: You can get a lot of links (deep links) to your site with anchor texts that really do the job because of sites who use the digg mirror service or others who compose their articles reffering to you etc. Let’s not forget about other sites that collaborate with Digg or users who use more than one social bookmarking site thus giving you tons of backlinks.

Monetizing Ads: Even though your ads won’t convert as you would want them a huge traffic spike could earn you some decent money. Altough your traffic increased 20 times and your winnings barely tripled it’s still a progress no doubt about it.

Exposure: Having your story on the first page gives you great exposure. Basically all viral campaigns made it to the first page on Digg so if you have something to say why not do it the smart way

Readers: Everybody knows John Chow and what he did, how he monetized his sites, pissed off Digg and Google etc… But the smart thing i guess nobody though of was converting Digg fans into his own. This shows us that if you have some talent (when it comes to writing) you can easily convert readers and make them your own. Guess how the first page of Digg helps in this equation

So most people who say that Digg is this or that or fear of a server crash are just “little girls” who never experienced real traffic and of course they fear it. My logical piece of advice is get as much (content oriented if possible) traffic as you can get !

P.S. If you do find the secret of placing your article on #1 page of Digg don’t forget to whisper

digg, xss

Digg Vulnerable to XSS Exploits30 Jan

I ran across this a while ago and forgot to post it.

Digg XSS Exploit

Yesterday I spotted another but was unable to get a screenshot. It seemed to have been taken down quickly.

digg, featured, smo

Digg Needs A Linkjacked Bury Option28 Jan

The recent controversy about changes to the digg.com story promotion algorithm has primarily focused on spreading out who can promote stories to the front page. I think this approach neglects a much bigger problem with the site: Linkjacked content. To remedy this, I propose a new bury function: Linkjacked.

The front page of Digg.com these days has a dearth of fresh new sites. There are almost always linkjacked posts to the same tired sites rehashing other people’s content with a catchy headline. One site that does this on a regular basis is crooksandliars.com. A search of front page stories (including buried submissions) reveals that of their last 10 front page articles, three were deemed inaccurate by the community at large.
diggcom_p_250.jpg
Accuracy issues aside, the first article on the list is a piece re-capping two articles. There are approximately 100 words in the article, of which 1/3 are block quotes. This article received over 1000 diggs, by most measures a fairly effective linkbait piece - yet there is nothing to the article. Are the honest people at crooksandliars.com the ones promoting these stories? I can’t say for certain, but I don’t think I’d be going out on a limb saying that most likely they are. That “article” probably took the “author” no more than 10 minutes to linkjack and is adding very little useful content. At some point Digg’s quest for pageviews must weigh the possibility of user fatigue.

digg, smo

10 Political Sites That Violate Digg’s TOS21 May

Digg.com’s inclusion of a politics section has given many political sites a springboard to attract a larger audience. For some of these groups the temptation to promote their political advocacy has proven too strong to stop them from violating Digg’s terms of service. The websites listed in this article appear to have crossed the line to varying degrees.

Article 3 Section 9 in Digg’s Terms of Service:

By way of example, and not as a limitation, you agree not to use the Services:

9. with the intention of artificially inflating or altering the ‘digg count’, blog count, comments, or any other Digg service, including by way of creating separate user accounts for the purpose of artificially altering Digg’s services; giving or receiving money or other remuneration in exchange for votes; or participating in any other organized effort that in any way artificially alters the results of Digg’s services.

  1. www.freecentury.com
  2. In an effort to make sure that Ron Paul has a permanent place in Digg’s recent front page articles for a long time to come, we are launching the 100,000 Diggs for Ron Paul campaign.

    The purpose is easily explained. We Ron Paul supporters want to get his message out to people who are not too familiar with him, and what he stands for. With the mainstream media ignoring the coming tsunami of Ron Paul support, many people might not hear about Dr. Paul until it is too late.

    Digg this article and have everyone you know Digg it too.

  3. Mises Institute

    I previously explained about Digg.com and how their recent addition of non-technology topics (e.g. Politics, Business & Finance) has opened an opportunity for pro-market/pro-liberty articles to get an airing at this very popular news site.

    Stories are “promoted” to the Digg.com front page by “digging” (voting) for a story. To coordinate efforts to promote free market and libertarian articles I have started a list of libertarian diggers. As I write this I already have 45 people on it. We have once again this morning been successful in promoting an article. In this case, today’s Mises.org Daily Article on inflation and the Fed. Head over to Digg and join the heated discussion about the article, (you will need to set up a free account).

    If you want to join our merry band of libertarian diggers, here are the details…

    E-mail me and send me your Digg Username (you login to Digg with this). I will add you to my list of Friends which is serving as our list of libertarian diggers.

  4. The Ron Paul Report

    4/16/07 Ron Paul Daily Digg

    Read and Digg these articles

  5. http://www.freetalklive.com/

    Digg FTL
    Digg.com is one of the most popular websites on the Internet. With your help, we can advance in their podcast rankings. Please click the button on the left to digg Free Talk Live. If you don’t have one, you will need to create a free account. Remember, you need to come back every two weeks and digg something else on the site like one of our episodes to continue locking in your digg for the podcast.
    digg.freetalklive.com -Direct link to the Free Talk Live page on digg.com news.freetalklive.com - Join the Free Market Diggers and help digg pro-Liberty articles on digg.com!

  6. Ron Paul Grass Roots Action

    Hello,

    This email message is a notification to let you know that
    a file has been uploaded to the Files area of the RonPaulGrassRootsAction
    group.

    File : /Digg tips
    Uploaded by : tangent4ronpaul
    Description : Using and networking on Digg for Ron Paul

    You can access this file at the URL

  7. No Governor Anywhere: FreeMarket, Libertarian Minded Blogging

    Ten ways to help Ron Paul online.

    We have to face it, the internet is currently the only place we can get the word out about Ron Paul.

    5. Digg.com: Go register at digg.com and do a search for Ron Paul. We have a double task here. First, read through the articles before you digg them. If you notice something posted twice, only digg the one that has the most so far, and bury the other. This way, people on digg won’t become burnt out by The Ron paul campaign. We can’t be called spammers if we only post one article about a certain topic, and if everyone is digging the same articles, the likelihood that story being on the front page, with the most exposure, increases.

  8. Armitage 2.0

    “Digg Ron Paul sites, stories, videos, and other links.”

  9. World Affairs Board

    For those who want to help make sure Dr. Paul’s message gets out…

    Here’s the most effective and easy way I know:

    - Visit Digg / News

    - Keyword search “Ron Paul”

    - Then “digg” every story that has the word Ron Paul in the headline.

    That’s it!

    This gets him additional attention; I’ve seen it work very well before. It’s already working for Dr. Paul.

    Usually there are around 25 Ron Paul stories on Digg every day. I Digg them about three times a day. What are your thoughts about this approach and about Ron Paul?

  10. Ron Paul Press Hub

    Sunday, May 13th, 2007

    Please digg the following article. If you don’t know what Digg is, read here

  11. disinter “digging up the truth”

    For a brief comparison of Hagel vs Paul votes, go here. Digg the comparison here.

    note: this is one of many articles intended to encourage diggers to promote Ron Paul

UPDATE

I found a few more:

Daily Paul

10 Ways to help Ron Paul Every Day Without Leaving Your Computer
Posted April 2nd, 2007 by manystrom
in

* Ron Paul

1. Go to digg.com and ‘digg’all of the stories about Ron Paul (also ‘digg’ stories about him on other sites such as www.RonPaul2008.com and LewRockwell.com etc by simply clicking the ‘digg’ button that is on most stories now). Making positive comment on those stories is a big help too. Also see reddit.com

BivingsReport

Explains to readers how to resubmit a Ron Paul article by adding a # anchor to the end of the url.

Other sites of interest:

http://www.searchronpaul.com/

About

Indexed Content is an up and coming SEO & brand management firm based out of Mesa, Arizona. We specialize in link building, copywriting, and highly successful submissions to most major social media outlets. For more information please call (602) 652-2615 or email info@indexedcontent.com.

Contact

Phone: 602-652-2615
Email: info@indexedcontent.com
Mail: 1853 N Oracle Mesa, AZ 85203