title: How do I convert css selector path copied from Chrome to beautifulsoup obejct?
body: <p>I've been trying to make a function that returns beautifulsoup object when css selector path copied from Chrome dev tool is given.</p>
  
  <p>When I copy a element's css selector path from Chrome, it goes like:</p>
  
  <pre><code>body &gt; table &gt; tbody &gt; tr:nth-child(2) &gt; td.ColumnText2
  </code></pre>
  
  <p>If I want it to become a legit beautifulsoup object, I would manually parse it like</p>
  
  <pre><code>html = urlopen("https://someurl.com")
  
  bs = BeautifulSoup(html, 'html.parser')
  
  bs.body.find_all('table')[3].find_all('tbody')[0].find_all('tr')[2].find_all('td', {'class': 'ColumnText2'})
  </code></pre>
  
  <p>But this is really clumsy and if I have to do it manually, there's no point in making a function. Is there some kind of built-in parser that can convert this css selector path to beautifulsoup object right away?</p>