title: Getting None trying to Web-Scrape all the article titles on the Ny-times front page
body: <p>Trying to get the article titles from the ny-times webpage, but when I tried to print all the titles with a for loop I get a list of some titles but mostly none.</p>
  
  <p>Sometimes I get nothing but NONE.</p>
  
  <p>How can I make it so it only prints the article titles?</p>
  
  <p>Tried using both xhtml and html.parser, not sure what I'm really doing though. Was following a youtube tutorial on scraping for an exercise but the nytimes page is very congested with web tags.</p>
  
  <p>Tried just sarching 'div' as well, without the class label.</p>
  
  <p>Tried dropping the .text</p>
  
  <pre><code>    import requests
      from bs4 import BeautifulSoup
  
  
      url = "https://www.nytimes.com"
      r = requests.get(url)
      r_html = r.text
  
  
      soup = BeautifulSoup(r_html, 'html.parser')
  
      for article in soup.find_all('div', class_='css-1ez5fsm esl82me1'):
          headline = article.h2.span
          print(headline)
  </code></pre>
  
  <p>I expected all the article titles to print.</p>