I was going to scrap some data from the webpage, but I cannot get what I want. So I checked if I can get the correct output at first stage.
import requests
from bs4 import BeautifulSoup
url = 'https://kream.co.kr/products/36939'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
print(soup)
Output shows tags only
import requests
from bs4 import BeautifulSoup
url = 'https://kream.co.kr/products/36939'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
product_info_div = soup.find('div', class_='product-info')
print(product_info_div)
Output is None
I would like to scrap the product number from
<div data-v-8b8c047e="" class="product_info"> 605720VCPQ38803 </div>
Could you please help me and explain why I cannot scrap that number and how I should do?
Thank you.
New contributor
SlowButSteady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.