<?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 Python script to auto-follow all Twitter followers</title>
	<atom:link href="http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 16:39:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: codewolf</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-113285</link>
		<dc:creator>codewolf</dc:creator>
		<pubDate>Wed, 01 Jul 2009 11:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-113285</guid>
		<description>This article inspired me to build my own. So I&#039;ve made a more complete example in PHP if anyone needs a copy without having to pound the Twitter API with thousands of requests. My PHP version should only hit the API about 4 API uses an hour and it runs on a cron.

Please feel free to port it to python if you want. The script Logs all your followers in a mysql database and welcomes them with an optional msg when it auto follows them. 

http://geekified.cable.nu/groups/codewolfscorner/discussion/autofollowyourtwitterfollowerswithphp

I hope it helps! Thanks again!
@CodeWolf</description>
		<content:encoded><![CDATA[<p>This article inspired me to build my own. So I&#8217;ve made a more complete example in PHP if anyone needs a copy without having to pound the Twitter API with thousands of requests. My PHP version should only hit the API about 4 API uses an hour and it runs on a cron.</p>
<p>Please feel free to port it to python if you want. The script Logs all your followers in a mysql database and welcomes them with an optional msg when it auto follows them. </p>
<p><a href="http://geekified.cable.nu/groups/codewolfscorner/discussion/autofollowyourtwitterfollowerswithphp" rel="nofollow">http://geekified.cable.nu/groups/codewolfscorner/discussion/autofollowyourtwitterfollowerswithphp</a></p>
<p>I hope it helps! Thanks again!<br />
@CodeWolf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Get Me Followers</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-112780</link>
		<dc:creator>Get Me Followers</dc:creator>
		<pubDate>Mon, 22 Jun 2009 07:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-112780</guid>
		<description>I&#039;m sure it would be just as easy for Twitter to set it so that you could automatically follow everyone that follows you, but just think how that would encourage even more spam than there already is on Twitter. People would follow anyone and everyone. Hundreds of thousands of followers would not be uncommon and you would also be following hundreds of thousands. Someone like aplusk has over 2 million followers, but only follows, probably, a couple of dozen, which is manageable. 

I use programs that get me followers, like Get Me Followers (click above..heeheh..blatant self-promotion), but it takes work to keep my following list manageable as my Followers list grows.  What would be good is being able to have separate lists (maybe in a user control panel) that shows who is both following you AND being followed by you as opposed to those that you follow and want nothing to do with following you.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure it would be just as easy for Twitter to set it so that you could automatically follow everyone that follows you, but just think how that would encourage even more spam than there already is on Twitter. People would follow anyone and everyone. Hundreds of thousands of followers would not be uncommon and you would also be following hundreds of thousands. Someone like aplusk has over 2 million followers, but only follows, probably, a couple of dozen, which is manageable. </p>
<p>I use programs that get me followers, like Get Me Followers (click above..heeheh..blatant self-promotion), but it takes work to keep my following list manageable as my Followers list grows.  What would be good is being able to have separate lists (maybe in a user control panel) that shows who is both following you AND being followed by you as opposed to those that you follow and want nothing to do with following you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: exinco</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-111990</link>
		<dc:creator>exinco</dc:creator>
		<pubDate>Fri, 19 Jun 2009 13:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-111990</guid>
		<description>i&#039;m interested in this script but i&#039;m totally blur, how to implement it. i have no time to understand the program. btw you have a good sharing and thanks for that</description>
		<content:encoded><![CDATA[<p>i&#8217;m interested in this script but i&#8217;m totally blur, how to implement it. i have no time to understand the program. btw you have a good sharing and thanks for that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Driscoll</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-103673</link>
		<dc:creator>Steve Driscoll</dc:creator>
		<pubDate>Sun, 24 May 2009 21:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-103673</guid>
		<description>Ah...I figure out the problem. The person has never made an update! LOL.</description>
		<content:encoded><![CDATA[<p>Ah&#8230;I figure out the problem. The person has never made an update! LOL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Driscoll</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-103664</link>
		<dc:creator>Steve Driscoll</dc:creator>
		<pubDate>Sun, 24 May 2009 20:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-103664</guid>
		<description>Thanks for the tips. I have a question (bug) that I&#039;m trying to resolve...

I use the following code to get my list of friends which constitutes over 3k at the moment.


************
c_time = time.time()

friends = []
i = 1
while True:
    f = api.GetFriends(page=i)
    if f.__len__() == 0: break
    i += 1
    friends += f

************
I&#039;m then trying to determine each friends last update with this code...

************
for friend in friends:
    last_u = (c_time - friend.status.created_at_in_seconds) / (60*60*24)
    if (last_u &gt;= 10):
        print &quot;%s last posted %.2f day(s) ago&quot; % (friend.screen_name, last_u)

************
This works for small lists of friends but not larger lists as I receive this error...

Traceback (most recent call last):
  File &quot;./twitter_api_poc.py&quot;, line 77, in 
    last_u = (c_time - friend.status.created_at_in_seconds) / (60*60*24)
AttributeError: &#039;NoneType&#039; object has no attribute &#039;created_at_in_seconds&#039;

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Thanks for the tips. I have a question (bug) that I&#8217;m trying to resolve&#8230;</p>
<p>I use the following code to get my list of friends which constitutes over 3k at the moment.</p>
<p>************<br />
c_time = time.time()</p>
<p>friends = []<br />
i = 1<br />
while True:<br />
    f = api.GetFriends(page=i)<br />
    if f.__len__() == 0: break<br />
    i += 1<br />
    friends += f</p>
<p>************<br />
I&#8217;m then trying to determine each friends last update with this code&#8230;</p>
<p>************<br />
for friend in friends:<br />
    last_u = (c_time &#8211; friend.status.created_at_in_seconds) / (60*60*24)<br />
    if (last_u &gt;= 10):<br />
        print &#8220;%s last posted %.2f day(s) ago&#8221; % (friend.screen_name, last_u)</p>
<p>************<br />
This works for small lists of friends but not larger lists as I receive this error&#8230;</p>
<p>Traceback (most recent call last):<br />
  File &#8220;./twitter_api_poc.py&#8221;, line 77, in<br />
    last_u = (c_time &#8211; friend.status.created_at_in_seconds) / (60*60*24)<br />
AttributeError: &#8216;NoneType&#8217; object has no attribute &#8216;created_at_in_seconds&#8217;</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-90589</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 10 Apr 2009 14:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-90589</guid>
		<description>Thanks man 

This helped me a lot ...

Manish</description>
		<content:encoded><![CDATA[<p>Thanks man </p>
<p>This helped me a lot &#8230;</p>
<p>Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyde Weys</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-82845</link>
		<dc:creator>Cyde Weys</dc:creator>
		<pubDate>Sat, 21 Mar 2009 02:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-82845</guid>
		<description>Thanks Peter.  You&#039;re absolutely right about the limit.  I found out about it while playing around with Python-Twitter probably a day after I posted this.  Fortunately, so long as you are already kept up on who you&#039;re following, this script should work as written.  As I understand it (and please correct me if I&#039;m wrong), when you call GetFollowers without a page parameter, it should return the 100 most recent followers.  I&#039;ve been running this auto-follow script as written on one of my accounts and it works.  So long as you aren&#039;t getting more than 100 followers an hour (you should only be so lucky!), it&#039;ll at least keep up with all of the new people to auto-follow.</description>
		<content:encoded><![CDATA[<p>Thanks Peter.  You&#8217;re absolutely right about the limit.  I found out about it while playing around with Python-Twitter probably a day after I posted this.  Fortunately, so long as you are already kept up on who you&#8217;re following, this script should work as written.  As I understand it (and please correct me if I&#8217;m wrong), when you call GetFollowers without a page parameter, it should return the 100 most recent followers.  I&#8217;ve been running this auto-follow script as written on one of my accounts and it works.  So long as you aren&#8217;t getting more than 100 followers an hour (you should only be so lucky!), it&#8217;ll at least keep up with all of the new people to auto-follow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter MacRobert</title>
		<link>http://www.cydeweys.com/blog/2009/03/10/a-python-script-to-auto-follow-all-twitter-followers/comment-page-1/#comment-80827</link>
		<dc:creator>Peter MacRobert</dc:creator>
		<pubDate>Tue, 17 Mar 2009 15:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cydeweys.com/blog/?p=1140#comment-80827</guid>
		<description>This is handy, but won&#039;t work if you have more than 100 followers or friends. Both the twitter API methods to return friends and followers only return 100 users at a time. The twitter.py library takes a page variable to accomodate this, i.e.:

following = []
i = 1
while True:
  f = api.GetFriends(page=i)
  if f.__len__() == 0: break
  i += 1
  following += f

Bearing in mind this will hammer the twitter API, and will use up your hourly API call allocation before the script finishes if you have a large number of friends or followers. So you&#039;ll need to batch this process up and execute it over a period of time.

Hope it helps,

Peter</description>
		<content:encoded><![CDATA[<p>This is handy, but won&#8217;t work if you have more than 100 followers or friends. Both the twitter API methods to return friends and followers only return 100 users at a time. The twitter.py library takes a page variable to accomodate this, i.e.:</p>
<p>following = []<br />
i = 1<br />
while True:<br />
  f = api.GetFriends(page=i)<br />
  if f.__len__() == 0: break<br />
  i += 1<br />
  following += f</p>
<p>Bearing in mind this will hammer the twitter API, and will use up your hourly API call allocation before the script finishes if you have a large number of friends or followers. So you&#8217;ll need to batch this process up and execute it over a period of time.</p>
<p>Hope it helps,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.230 seconds -->

