title: How to scrape CERTAIN (filtered of sorted) twitter followers using R
body: <p>I have a problem in <strong>scraping</strong> filtered followers in twitter using R.
  To be specific, i'd like to <strong>scrape</strong> twitter followers</p>
  <ol>
  <li>who have tweets more than 1,</li>
  <li>who mentioned certain keywords in their tweets,</li>
  <li>who retweets certain users(people)'s tweets</li>
  </ol>
  <p>among A followers(A just for an example).</p>
  <p>Below are packages i used. Spaces are to block my private API keys.</p>
  <pre><code>install.packages(&quot;devtools&quot;)
  library(devtools)
  install_github(&quot;mkearney/rtweet&quot;) 
  install.packages(&quot;rtweet&quot;)
  library(rtweet)
  
  api_key &lt;-
  api_secret_key &lt;-
  access_token &lt;- 
  access_token_secret &lt;- 
   
  
  mytoken&lt;-create_token(app = &quot;&quot;, api_key,api_secret_key,  access_token, access_token_secret, set_renv = FALSE)
  </code></pre>
  <p>Codes I used to <strong>scrape</strong> twitter followers who follow certain twitter users are followed.
  (FoxNews is only for the purpose to illustrate an example)</p>
  <pre><code>FoxNews.followers&lt;-get_followers(user=&quot;FoxNews&quot;,n=75000)
  FoxNews.followers.data&lt;-lookup_users(users=FoxNews.followers$user_id)
  df.FoxNews&lt;-data.frame(FoxNews.followers)
  </code></pre>
  <p>What i need is the list of filtered followers(conditions 1,2,3 above) among &lt;FoxNews.followers&gt;.
  I think I can get them if i put some codes in mine but i'm not sure what to put as well as where to put.
  I'd so appreciate any advice.
  Thanks.</p>