title: How to access 'parent' from BeautifulSoup using select or find?
body: <pre><code>import requests
  from bs4 import BeautifulSoup
  
  
  # raw = requests.get(&quot;https://www.daum.net&quot;)
  # raw = requests.get(&quot;http://127.0.0.1:5000/emp&quot;)
  
  response = requests.get(&quot;https://vip.mk.co.kr/newSt/rate/item_all.php?koskok=KOSPI&amp;orderBy=upjong&quot;)
  response.raise_for_status()
  response.encoding= 'EUC-KR'
  html = response.text
  bs = BeautifulSoup(html, 'html.parser')
  
  result = bs.select(&quot;tr .st2&quot;)
  
      &lt;tr&gt;
        &lt;td width='92' class='st2'&gt;&lt;a href=&quot;javascript:goPrice('000020&amp;MSid=&amp;msPortfolioID=')&quot; title='000020'&gt;somethinbg&lt;/a&gt;&lt;/td&gt;
        &lt;td width='60' align='right'&gt;15,100&lt;/td&gt;
        &lt;td width='40' align='right'&gt;&lt;span class='t_12_blue'&gt;▼300&lt;/span&gt;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  <p>I want to get datas from the someweher by using BeautifulSoup.
  But I should access parent Node where has .
  However, it's really hard to do it.</p>
  <p>This is the code:</p>
  <p>Then, how can I get datas from the parent which has the '&lt;tr class ='st2&gt;''</p>
  <p>here is the example</p>