OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How do I scrape text from <strong> tag?

  • Thread starter Thread starter Konrad
  • Start date Start date
K

Konrad

Guest
How would I extract the text from HTML code bellow. I'm using Python requests and BeautifulSoup.

<strong>Front Headlamp - Left </strong>

I was excpecting to get the names.

CURRENT CODE for item in items: name = item.find['strong'] print(item)
<p>How would I extract the text from HTML code bellow. I'm using Python requests and BeautifulSoup.</p>
<p><code><strong>Front Headlamp - Left </strong></code></p>
<p>I was excpecting to get the names.</p>
<p>CURRENT CODE
<code>for item in items: name = item.find['strong'] print(item)</code></p>
 

Latest posts

Top