title: Having problems with Ruby file from Dashing
body: <p>I am having trouble with <a href="https://github.com/foobugs/foobugs-dashboard/blob/master/jobs/twitter_user.rb" rel="nofollow">twitter_user.rb</a>, which is supposed to get the number of tweets, followers, and following of a given Twitter username.</p>
  
  <p>I assume that I am supposed to replace <code>TWITTER_USERNAME</code> in line 9 with the Twitter username that I am interested in.  I did that and started dashing but I got:</p>
  
  <pre><code>scheduler caught exception:
  undefined method '[]' for nil:NilClass
  /.../jobs/twitter_user.rb:19:in 'block in &lt;top (required)&gt;'
  </code></pre>
  
  <p>It looks like the problem is with line 19 which is:</p>
  
  <pre><code>tweets = /profile["']&gt;[\n\t\s]*&lt;strong&gt;([\d.,]+)/.match(response.body)[1].delete('.,').to_i
  </code></pre>
  
  <p>Can anybody tell me what is going on and how to fix it? </p>