title: Using Selenium to scrape the id_str object
body: <p>Using the Selenium library in python, I am currently scraping content from a twitter search results page: <a href="https://twitter.com/search?q=twinkie&amp;src=typd&amp;lang=en" rel="nofollow noreferrer">https://twitter.com/search?q=twinkie&amp;src=typd&amp;lang=en</a></p>
  
  <p>The Selenium library has the following functions to identify the content that we want to grab:</p>
  
  <pre><code>find_elements_by_name
  find_elements_by_xpath
  find_elements_by_link_text
  find_elements_by_partial_link_text
  find_elements_by_tag_name
  find_elements_by_class_name
  find_elements_by_css_selector
  </code></pre>
  
  <p>The particular object I want to grab is called id_str. It is a string of unique numbers that is specific to each account. I have been having a rather hard time figuring out how to grab this particular object. </p>
  
  <p>Because of the length of each element, I won't bother copying all of the html code directly in here but I am noticing that all id_str is preceded by:</p>
  
  <pre><code>&lt;div class="tweet js-stream-tweet js-actionable-tweet js-profile-popup-actionable dismissible-content
     original-tweet js-original-tweet
  
  
     has-cards  has-content
  </code></pre>
  
  <p>Which function would you suggest that I use to grab id_str. Optimally, I would like to have enough bearings with webpage codes that I will be able to identify other objects by myself-- what topics should I review to better understand? I am still relatively new to coding.</p>
  
  <p>Thank you so much for reading everyone</p>