title: How to get the media_url of a tweet when using academictwitterR in R?
body: <p>I am wondering whether it is possible to retrieve the media_url of an image that has been posted within a tweet in Twitter while using the academictwitterR package.
  I am trying to loop over a list of users in order to get their tweets. The only thing I am lacking is the media url within the tweet, respectively the .jpg, in my current code. The remainder of the code works perfectly fine for me. I would highly appreciate any advice/help. Thank you in advance guys!</p>
  <p>In order to get you a better understanding of my problem, I am using the following code:</p>
  <pre><code>require(academictwitteR)
  library(&quot;writexl&quot;)
  library(jsonlite)
  library(data.table)
  
  set_bearer()
  get_bearer()
  setwd(&quot;/Users/Kevin/example&quot;)
  getwd()
  handles &lt;- read.csv(&quot;example.csv&quot;)
  df &lt;- data.frame(handles)
  x &lt;- c(t(df))
  
  for (i in seq_along(x)) {
  tweets &lt;- get_all_tweets(
  users = x[i],
  start_tweets = &quot;2020-05-26T00:00:00Z&quot;,
  end_tweets = &quot;2020-05-29T00:00:00Z&quot;,
  is_retweet=FALSE,
  is_reply=FALSE,
  data_path = &quot;data&quot;,
  verbose = TRUE,
  bind_tweets = FALSE,
  export_query = TRUE,
  n=Inf,
  context_annotations=TRUE
  )
  }
  
  data&lt;-bind_tweets(data_path=&quot;data/&quot;,user = FALSE)
  users&lt;-bind_tweets(data_path=&quot;data/&quot;,user = TRUE)
  
  data &lt;- as.data.table(data)
  users &lt;- as.data.table(users)
  
  names(users)[names(users)==&quot;id&quot;] &lt;- &quot;author_id&quot;
  
  data &lt;- merge(data,users,by=&quot;author_id&quot;)
  
  saveRDS(data,&quot;Tweets.rds&quot;)
  
  write.csv(data, file = &quot;twitter_tweets.csv&quot;, row.names=FALSE)
  </code></pre>