title: How can i extract data-component attribute using python web scraping
body: <p>I am trying to scrape data from this url=&quot;https://stockx.com/air-jordan-3-retro-pine-green&quot;. I am trying to get the title of the item but unfortunately, whatever I do I can't seem to extract it properly using python beatifulsoup.</p>
  <p><code>product_name=soup.find_all('div',class_='css-j7qwjs').text</code></p>
  <p>but I'm getting errors like this.</p>
  <pre><code>AttributeError                            Traceback (most recent call last)
  C:\Users\HPPC~1\AppData\Local\Temp/ipykernel_98396/1955605631.py in &lt;module&gt;
  ----&gt; 1 product_name=soup.find_all('div',class_='css-j7qwjs').text
  
  ~\AppData\Roaming\Python\Python310\site-packages\bs4\element.py in __getattr__(self, key)
     2251     def __getattr__(self, key):
     2252         &quot;&quot;&quot;Raise a helpful exception to explain a common code fix.&quot;&quot;&quot;
  -&gt; 2253         raise AttributeError(
     2254             &quot;ResultSet object has no attribute '%s'. You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?&quot; % key
     2255         )
  </code></pre>
  <blockquote>
  <p>AttributeError: ResultSet object has no attribute 'text'. You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?</p>
  </blockquote>
  <p>can anyone tell me how can I scrape it properly?</p>