title: Finding first row of a table with Beautiful Soup
body: <p>I'm working on an assignment for class. I need to write something that will return the first row in the table on this webpage (the Barr v. Lee) row: <a href="https://www.supremecourt.gov/opinions/slipopinion/19" rel="nofollow noreferrer">https://www.supremecourt.gov/opinions/slipopinion/19</a></p>
  <p>I've seen other questions that some might consider similar. But they don't look like they're answering my same question. Most other questions it looks like they already have the table on head, rather than pulling it down from a website already.</p>
  <p>Or, maybe I just can't see the resemblance. I've been scraping for about a week now.</p>
  <p>Right now, I'm trying to build a loop that will go through all the <code>div</code> elements with an increment counter, and have the counter return a number that tells what the div is for that row so I can drill into it.</p>
  <p>This is what I have so far:</p>
  <pre><code>for divs in soup_doc:
  div_counter = 0
  soup_doc.find_all('div')[div_counter]
  div_counter = div_counter + 1
  print(div_counter)
  </code></pre>
  <p>But right now, it's only returning <code>1</code> which I know isn't right. What should I do to fix this? Or is there a better way to go about getting this information?</p>
  <p>My output should be:</p>
  <pre><code>63
  7/14/20
  20A8
  Barr v. Lee
  
  PC
  591/2
  </code></pre>