Follow your Followers using Ruby
Posted: May 20th, 2009 | Author: Daniel Higginbotham | Filed under: Uncategorized | 6 Comments »I have the following in a rake task run every 30 minutes. You’ll need jnunemaker’s twitter gem.
- require 'twitter'
- # Check out the twitter gem docs for using oauth
- httpauth = Twitter::HTTPAuth.new("username", "password")
- base = Twitter::Base.new(httpauth)
- to_follow_ids = base.follower_ids - base.friend_ids
- unavailable_count = 0
- to_follow_ids.each do |tfid|
- begin
- base.friendship_create(tfid, true)
- rescue Twitter::General
- # Twitter::General is raised for 403 errors
- # Which occur when you're trying to follow someone who's been banned by twitter
- base.block(tfid)
- rescue Twitter::Unavailable
- # Wait and try again if twitter's telling you to wait
- sleep 5
- if unavailable_count < 3
- retry
- unavailable_count += 1
- end
- end
- end

Good afternoon! Escort Model information there. sex men. I am pleased to welcome you to its website, prostitutes Kiev – Fish. You can visit my blog.
How do you make money auto racing legally?
I join. It was and with me. Let’s discuss this question.
Certainly. I agree with told all above.
It doesn’t matter!
Excuse, that I interrupt you, but, in my opinion, there is other way of the decision of a question.
Remarkably! Thanks!
from http://mobilekarta.ru
Will money be taken from my taxes because I have a student loan?
When you order frogs legs at a restaurant – what do they do with the rest of the frog ?
I’m looking for an experienced Ruby on Rails developer in Burlington, MA Area. I’d love to speak to whoever’s interested, I’ve been searching for a while. Below’s the job description, please let me know if you’re interested! Thanks!
Job Description: Ruby on Rails Developer needed for a long term contract.
Position requirements:
* 2+ years experience with Ruby on Rails
* 5+ years prior experience as a Java Developer with a strong software engineering/middle-tier background
* Open Source Tools experience
* Database experience (ideally MySQL)
* Ruby on Rails testing experience is a plus
They have 4 primary projects they need help with. Depending on background, consultant could work on any of the 4