title: How can I scrape data value with BS4?
body: <p>How do I scrape this data with BS4? I used <code>html.parser</code> without success.</p>
  <p>My code is:</p>
  <pre><code>for page in pages:
              
      page= cat[1] + &quot;?s=%3Arelevance&amp;page=&quot; + str(page)
      page1 = requests.get(page)
  
      soup = BeautifulSoup(page1.content, &quot;html.parser&quot;)
      data = [(re.find_all('div', attrs={'class':'prd'}), page1.text)]
  
      if not data:
          break
  </code></pre>
  <p>Master data:</p>
  <pre><code>&lt;div id=&quot;product-item&quot; class=&quot;prd &quot; data-product-id=&quot;125034323&quot; data-product-name=&quot;Lenovo IdeaPad 5 Intel Core i3-1115G4 4 GB 256 GB SSD Integrated Intel UHD Graphics 14&amp;quot; FHD W11 Platinum Notebook Gri 82FE00LBTX&quot; data-product-category=&quot;Bilgisayar ve Tablet&quot; data-product-brand=&quot;Lenovo&quot; data-product-price=&quot;5799.0&quot; data-product-url=&quot;/lenovo-ideapad-5-intel-core-i31115g4-4-gb-256-gb-ssd-integrated-intel-uhd-graphics-14-fhd-w11-platinum-notebook-gri-82fe00lbtx-p-125034323&quot; data-product-page-type=&quot;CATEGORY&quot; data-product-position=&quot;1&quot; data-product-subcategory=&quot;Laptop, Notebook&quot; data-product-actual-price=&quot;0.0&quot; data-product-discounted-price=&quot;5799.0&quot; data-product-rating-score=&quot;&quot; data-product-review-count=&quot;&quot; data-product-occasion=&quot;N&quot; data-product-photo-count=&quot;8&quot; data-product-video=&quot;N&quot; data-product-special=&quot;N&quot; data-product-stock=&quot;Y&quot; data-product-stock-status=&quot;Satışta&quot; data-product-review=&quot;&quot; data-product-variant=&quot;&quot; data-category-name=&quot;Bilgisayar ve Tablet&quot; data-facet-name=&quot;&quot; data-facet-value=&quot;&quot;&gt;
  </code></pre>