I am trying to scrape data off this url: https://www.apple.com/ca/shop/browse/home/specialdeals/mac/macbook_pro/13
I am trying to retrieve the line that says
8GB of 2133MHz LPDDR3 onboard memory
or
16GB of 2133MHz LPDDR3 onboard memory
in each container in containers = soup.findAll('tr', {'class': 'product'}) using BeautifulSoup. The problem is it has line breaks and multiple newlines around it, which makes it difficult for me to parse. How can I retrieve this?
Aucun commentaire:
Enregistrer un commentaire