<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: a GreaseMonkey script for Follow Rank and Follows in Common for Twitter User Profiles</title>
	<atom:link href="http://www.falsepositives.com/index.php/2010/01/28/a-greasemonkey-script-for-follow-rank-and-follows-in-common-for-twitter-user-profiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.falsepositives.com/index.php/2010/01/28/a-greasemonkey-script-for-follow-rank-and-follows-in-common-for-twitter-user-profiles/</link>
	<description>Ian Irving&#039;s Code and Culture from Toronto</description>
	<lastBuildDate>Tue, 20 Jul 2010 09:20:50 -0700</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeffery To</title>
		<link>http://www.falsepositives.com/index.php/2010/01/28/a-greasemonkey-script-for-follow-rank-and-follows-in-common-for-twitter-user-profiles/comment-page-1/#comment-34868</link>
		<dc:creator>Jeffery To</dc:creator>
		<pubDate>Sun, 31 Jan 2010 20:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.falsepositives.com/?p=2377#comment-34868</guid>
		<description>A few suggestions on staying withing the rate limit:

* Instead of getting the entire list of friends and/or followers, get the first batch from one API call, then prompt the user to load more (either actively with a popup or passively with a &quot;more&quot; button on the page). Continue to prompt the user after each batch. This way the user is in control of how many API calls they use.

* When getting user details, use the statuses/friends and/or statuses/followers instead of calling users/show for each user ID. You get details for 100 users for each API call.

* You may not even need to show details for every user. Twitter only shows at most 36 followers on a user&#039;s profile page; any more and it becomes a giant sea of thumbnails. Perhaps your script should also limit details to 36 users.

* For the 36 followers shown on the profile page, you don&#039;t need API calls to get their details; you can parse the page / walk the DOM to get that information.

* You may be able to use statuses/friends and statuses/followers instead of friends/ids and followers/ids (respectively); I&#039;m guessing most users don&#039;t have more than 100 friends or 100 followers. That way you get the list and the user details in one call. Perhaps you can get the number of friends or followers (from users/show), then decide which method to call.

* Call account/rate_limit_status before starting any large number of API calls. You can get the number of friends or followers, then estimate the number of required calls. Make the calls only if the user will stay within the limit.

HTH,
Jeff</description>
		<content:encoded><![CDATA[<p>A few suggestions on staying withing the rate limit:</p>
<p>* Instead of getting the entire list of friends and/or followers, get the first batch from one API call, then prompt the user to load more (either actively with a popup or passively with a &#8220;more&#8221; button on the page). Continue to prompt the user after each batch. This way the user is in control of how many API calls they use.</p>
<p>* When getting user details, use the statuses/friends and/or statuses/followers instead of calling users/show for each user ID. You get details for 100 users for each API call.</p>
<p>* You may not even need to show details for every user. Twitter only shows at most 36 followers on a user&#8217;s profile page; any more and it becomes a giant sea of thumbnails. Perhaps your script should also limit details to 36 users.</p>
<p>* For the 36 followers shown on the profile page, you don&#8217;t need API calls to get their details; you can parse the page / walk the DOM to get that information.</p>
<p>* You may be able to use statuses/friends and statuses/followers instead of friends/ids and followers/ids (respectively); I&#8217;m guessing most users don&#8217;t have more than 100 friends or 100 followers. That way you get the list and the user details in one call. Perhaps you can get the number of friends or followers (from users/show), then decide which method to call.</p>
<p>* Call account/rate_limit_status before starting any large number of API calls. You can get the number of friends or followers, then estimate the number of required calls. Make the calls only if the user will stay within the limit.</p>
<p>HTH,<br />
Jeff</p>
]]></content:encoded>
	</item>
</channel>
</rss>
