naufalnashif commited on
Commit
a26eff7
·
1 Parent(s): 73bee56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,7 +73,7 @@ def scrape_shopee(nama_barang, num_items):
73
  query = quote(nama_barang)
74
  progress_text = "Scraping in progress. Please wait."
75
  my_bar = st.progress(0, text=progress_text)
76
- url = f'https://shopee.co.id/search?keyword={query}&page={page}'
77
  #path = ''
78
 
79
  #Customize chrome display
@@ -102,7 +102,7 @@ def scrape_shopee(nama_barang, num_items):
102
  products = products[:num_items]
103
  break
104
 
105
-
106
  driver.get(url)
107
 
108
  html = driver.execute_script("return document.getElementsByTagName('html')[0].innerHTML")
 
73
  query = quote(nama_barang)
74
  progress_text = "Scraping in progress. Please wait."
75
  my_bar = st.progress(0, text=progress_text)
76
+
77
  #path = ''
78
 
79
  #Customize chrome display
 
102
  products = products[:num_items]
103
  break
104
 
105
+ url = f'https://shopee.co.id/search?keyword={query}&page={page}'
106
  driver.get(url)
107
 
108
  html = driver.execute_script("return document.getElementsByTagName('html')[0].innerHTML")