Commit
·
82e48ba
1
Parent(s):
8d1f86b
Update app.py
Browse files
app.py
CHANGED
@@ -81,8 +81,10 @@ def scrape_tokped(nama_barang, num_items):
|
|
81 |
try :
|
82 |
response = requests.get(url, headers = headers, timeout = timeout)
|
83 |
response.raise_for_status()
|
84 |
-
|
85 |
soup = BeautifulSoup(response.text, 'html.parser')
|
|
|
|
|
86 |
product_container_list = soup.find_all('a', class_="pcv3__info-content css-gwkf0u", href = True)
|
87 |
|
88 |
for product_info in product_container_list:
|
|
|
81 |
try :
|
82 |
response = requests.get(url, headers = headers, timeout = timeout)
|
83 |
response.raise_for_status()
|
84 |
+
st.write(response.content)
|
85 |
soup = BeautifulSoup(response.text, 'html.parser')
|
86 |
+
st.write('----------------------------------------')
|
87 |
+
st.write(soup)
|
88 |
product_container_list = soup.find_all('a', class_="pcv3__info-content css-gwkf0u", href = True)
|
89 |
|
90 |
for product_info in product_container_list:
|