title: How can i get name of the bank, small details and company-score from html using bs4?
body: <p>I am trying to <strong>scrape</strong> elements form the url &quot;https://www.sustainalytics.com/esg-ratings/?industry=Banks&amp;currentpage=1</p>
  <pre><code>  &lt;div class=&quot;company-row d-flex&quot;&gt;
  &lt;div class=&quot;w-50&quot;&gt;
  &lt;a class=&quot;primary-color d-block&quot; href=&quot;../esg-rating/aecc-aviation-power-co-ltd/1031931293&quot;&gt;AECC Aviation Power Co Ltd&lt;/a&gt;
  &lt;small&gt;SHG:600893&lt;/small&gt;
  &lt;/div&gt;
  &lt;div class=&quot;company-score w-50&quot;&gt;
  &lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-2&quot;&gt;53.3&lt;/div&gt;
  &lt;div class=&quot;col-4 d-none d-lg-block&quot;&gt;
  &lt;div class=&quot;row cc-risk-rating-brackets&quot;&gt;
  &lt;div class=&quot;col cc-risk-rating-bracket active&quot;&gt;&lt;span&gt;&amp;amp;nbsp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;col cc-risk-rating-bracket active&quot;&gt;&lt;span&gt;&amp;amp;nbsp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;col cc-risk-rating-bracket active&quot;&gt;&lt;span&gt;&amp;amp;nbsp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;col cc-risk-rating-bracket active&quot;&gt;&lt;span&gt;&amp;amp;nbsp&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;col cc-risk-rating-bracket active&quot;&gt;&lt;span&gt;&amp;amp;nbsp&lt;/span&gt;&lt;/div&gt; &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-lg-6 col-md-10&quot;&gt;Severe ESG Risk&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &gt;&gt;&gt;
  </code></pre>
  <p>And this is my python code:</p>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; import requests
  &gt;&gt;&gt; from bs4 import BeautifulSoup
  &gt;&gt;&gt; source = requests.get('https://www.sustainalytics.com/esg-ratings/?industry=Aerospace+%26+Defense&amp;currentpage=1').text
  &gt;&gt;&gt; soup = BeautifulSoup(source)
  &gt;&gt;&gt; company_info = soup.find(class_='company-row d-flex')
  &gt;&gt;&gt; company_name = company_info.a.text
  &gt;&gt;&gt; company_exchange = company_info.find(&quot;small&quot;).text
  &gt;&gt;&gt; company_risk = soup.find(&quot;div&quot;, class_=&quot;company-score w-50&quot;).text
  &gt;&gt;&gt; company_risk = company_risk.split('\n')
  &gt;&gt;&gt; print(company_name, company_exchange, company_risk[2], company_risk[7])
  AECC Aviation Power Co Ltd SHG:600893 53.3 Severe ESG Risk
  &gt;&gt;&gt;
  
  </code></pre>