title: how to navigate in bs4 using html hierarchy
body: <p>basically I made a code that prints out the hierarchy of a target tag as in</p>
  
  <pre><code> html.body.div['root'].div.section['breadcrumbs'].div.script['application/ld+json']
  </code></pre>
  
  <p>*brackets contain the class name in cases where there are more than one div</p>
  
  <p>and I want to use this output in another python doc to get the content of the target tag </p>
  
  <p>I tried using the method 
  soup.body.div……
  but couldn't figure out how to specify the div I want with the class I have in the hierarchy</p>
  
  <p>Is there any way to specify which div I am calling with the class I have  using bs4 or is there any other library that could help??</p>