
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jtGraphic.net &#187; Program</title>
	<atom:link href="http://jtgraphic.net/tag/program/feed/" rel="self" type="application/rss+xml" />
	<link>http://jtgraphic.net</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 01:15:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Automated Way to Find Google Pagerank</title>
		<link>http://jtgraphic.net/automated-find-google-pagerank/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=automated-find-google-pagerank</link>
		<comments>http://jtgraphic.net/automated-find-google-pagerank/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 21:11:41 +0000</pubDate>
		<dc:creator>jt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Pagerank]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Tidbit Tuesday]]></category>

		<guid isPermaLink="false">http://www.jtgraphic.net/?p=722</guid>
		<description><![CDATA[<p>Tweet I was looking for an automated way to get Google Pagerank for a few hours and came up with quite a few things, but not many of them were very elegant.  Essentially, Google doesn&#8217;t provide an API and it&#8217;s &#8230; <a href="http://jtgraphic.net/automated-find-google-pagerank/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>Originally posted on jtGraphic.net: <a href="http://jtgraphic.net/automated-find-google-pagerank/">Automated Way to Find Google Pagerank</a></p>]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fjtgraphic.net%2Fautomated-find-google-pagerank%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://jtgraphic.net/automated-find-google-pagerank/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jtgraphic.net/automated-find-google-pagerank/"  data-text="Automated Way to Find Google Pagerank" data-count="horizontal" data-via="jtgraphic">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://jtgraphic.net/automated-find-google-pagerank/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://jtgraphic.net/automated-find-google-pagerank/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>I was looking for an automated way to get Google Pagerank for a few hours and came up with quite a few things, but not many of them were very elegant.  Essentially, Google doesn&#8217;t provide an API and it&#8217;s against their terms of service to hit them up in an automated way.  I found quite a few places that have come up with close algorithms and calculate PR for sites, but that&#8217;s just not accurate enough for me.  The other option is to hit their PR URL that the toolbar uses.  For example:</p>
<p><a href="http://toolbarqueries.google.com/search?client=navclient-auto&amp;hl=en&amp;ch=61470319184&amp;ie=UTF-8&amp;oe=UTF-8&amp;features=Rank&amp;q=info:http%3A%2F%2Fforums.digitalpoint.com%2Fshowthread.php%3Ft%3D164713" target="_blank">http://toolbarqueries.google.com/search?client=navclient-auto&amp;hl=en&amp;ch=61470319184&amp;ie=UTF-8&amp;oe=UTF-8&amp;features=Rank&amp;q=info:http%3A%2F%2Fforums.digitalpoint.com%2Fshowthread.php%3Ft%3D164713</a></p>
<p>That returns the PR of Digital Point Forums, where I found that information, but you can&#8217;t change the reference URL, because of a checksum.  That&#8217;s the &amp;ch= variable in the URL.  I&#8217;m working on a project that needs to look up PR on the fly though, so that just won&#8217;t work.  I ended up finding a script that I could use, but the guy didn&#8217;t put his URL in the comments, and I since can&#8217;t find it &#8211; oops.  I think he deserves a pat on the back though.  If this belongs to you, or you know who&#8217;s it is, let me know.</p>
<p>I tweaked the script and installed it on my <a href="http://toolerific.com" target="_blank">Toolerific.com</a> website.  Now you can go there and check the PR of any site without a captcha, which is nice.  The tool is <a href="http://toolerific.com/pagerankcheck/" target="_blank">here</a>.</p>
<p>Now, the best automated way to check pagerank is to hit that site with cURL and take out the value of the HTML tag with the id &#8220;value&#8221;.  The reason that is the best automated way to do it is because Google may change their checksum rules and that will break the source code that I used to generate it, but that site will always be laid out like that, so you don&#8217;t have to worry about changing anything.  If you want the code I used, you can view it <a href="http://www.jtgraphic.net/code/june-2010-pr-checker-php-script/">here</a>.</p>
<p><em><strong>Update</strong>: This doesn&#8217;t seem to work ALL of the time.  I suspect it has something to do with the checksum, but can&#8217;t figure it out.  Seems to be about 27% of the time, which isn&#8217;t great odds, but it works MOST of the time.  I&#8217;ll keep you posted if I find out more.</em></p>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fjtgraphic.net%2Fautomated-find-google-pagerank%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://jtgraphic.net/automated-find-google-pagerank/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jtgraphic.net/automated-find-google-pagerank/"  data-text="Automated Way to Find Google Pagerank" data-count="horizontal" data-via="jtgraphic">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://jtgraphic.net/automated-find-google-pagerank/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://jtgraphic.net/automated-find-google-pagerank/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>Originally posted on jtGraphic.net: <a href="http://jtgraphic.net/automated-find-google-pagerank/">Automated Way to Find Google Pagerank</a></p>]]></content:encoded>
			<wfw:commentRss>http://jtgraphic.net/automated-find-google-pagerank/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

