I learn web scraping and while trying to scrape a website I got stuck.
Below sample of the output I received.
‘n Cookwaren ‘]
[‘n’, Cookware Sets (Nonstick), ‘n’]
[‘n’, Cookware Sets (Stainless Steel), ‘n’]
tried this code :
response = page.content
soup = BeautifulSoup(response,’lxml’)
div_all = soup.find_all(‘a’, class_ = ‘products-a-z__results__item’)
n = []
for i in div_all:
print(str(i.contents))
continue
expected output:
Cookware
Cookware Sets (Nonstick)
Cookware Sets (Stainless Steel)
Ibrahim Barqawi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.