aashwinik commited on
Commit
a6e9c25
1 Parent(s): e241312

Update Workflow/Scrape.py

Browse files
Files changed (1) hide show
  1. Workflow/Scrape.py +2 -8
Workflow/Scrape.py CHANGED
@@ -6,7 +6,6 @@ import streamlit as st
6
  import os
7
  os.environ["INPUT_DATA"] = "Input/Sites.xlsx" ## to silence warning
8
 
9
- places=[]
10
 
11
  def get_inputData(filePath):
12
  df= pd.read_excel(io=filePath, engine='openpyxl')
@@ -32,17 +31,12 @@ def display_data():
32
  result=open_url(row['SiteURL'])
33
  places=do_scrape(result)
34
 
35
- pl= pd.DataFrame({'Source':[], 'Places':[]})
36
 
37
  for p in places:
38
  d = pd.DataFrame({'Source': [row['SiteName']], 'Places': [p]})
39
  pl = pd.concat([pl, d], ignore_index = True)
40
- #pl.loc[i] = [i, random.randint(1, 10), random.randint(1, 10)]
41
-
42
- #pd.DataFrame(d)
43
-
44
- #df = pd.concat([df, new_row], ignore_index=True)
45
- #pl = pd.concat(d, ignore_index=True)
46
 
47
  st.dataframe(pl)
48
 
 
6
  import os
7
  os.environ["INPUT_DATA"] = "Input/Sites.xlsx" ## to silence warning
8
 
 
9
 
10
  def get_inputData(filePath):
11
  df= pd.read_excel(io=filePath, engine='openpyxl')
 
31
  result=open_url(row['SiteURL'])
32
  places=do_scrape(result)
33
 
34
+ pl= pd.DataFrame()
35
 
36
  for p in places:
37
  d = pd.DataFrame({'Source': [row['SiteName']], 'Places': [p]})
38
  pl = pd.concat([pl, d], ignore_index = True)
39
+
 
 
 
 
 
40
 
41
  st.dataframe(pl)
42