I have been trying to scrape the website and cant seem to drop the tag from the results. I have tried .text and .get_text.Both not giving me any results
Below is the code :
excel=openpyxl.Workbook()
sheet = excel.active
sheet.title = "Coffee Data-India"
sheet.append(["product name","roast profile","price"])
website = requests.get("https://bluetokaicoffee.com/collections/coffee?cmp_id=16960797521&adg_id=140939617812&kwd=&device=c&gclid=Cj0KCQjwidSWBhDdARIsAIoTVb0H_6Zq4saXczwiZAtbSdQwyT_evp74MQXxI9upPMSh9vC-UW8eOeEaAmjuEALw_wcB")
website.raise_for_status()
soup = BeautifulSoup(website.content,"html.parser")
coffees = soup.find_all("div",class_="details")
for coffee in coffees:
name = coffee.find("strong").text
roast = coffee.find("div",class_="r-prop").find("div",class_="roast-section").find("strong")
price = coffee.find('h6',class_="pd-price txt-of").text
print(name,roast,price)
sheet.append([name,roast,price])
excel.save("Coffee-Indian.xls")