t"><code><span class="kp">loop</span> <span class="k">do</span>
  <span class="n">search</span> <span class="s2">"twitter"</span> <span class="k">do</span> <span class="o">|</span><span class="n">tweet</span><span class="o">|</span>
    <span class="c1"># here you could do something with a tweet</span>
    <span class="c1"># if you want to retweet</span>
    <span class="n">retweet</span><span class="p">(</span><span class="n">tweet</span><span class="p">[</span><span class="ss">:id</span><span class="p">])