Canstralian commited on
Commit
1c585ef
1 Parent(s): 5b40103

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -17,10 +17,11 @@ if st.button("Scrape and Scan"):
17
  response = session.get(url)
18
 
19
  # Attempt to render JavaScript, if necessary
20
- try:
21
- response.html.render()
22
- except Exception as e:
23
- st.warning("Please enter a valid URL.")
 
24
 
25
  # Extract links, JavaScript files, and forms
26
  links = [link.attrs['href'] for link in response.html.find('a') if 'href' in link.attrs]
 
17
  response = session.get(url)
18
 
19
  # Attempt to render JavaScript, if necessary
20
+ if url:
21
+ st.write(f"Processing {url}...")
22
+ # Rest of the code...
23
+ else:
24
+ st.warning("Please enter a valid URL.")
25
 
26
  # Extract links, JavaScript files, and forms
27
  links = [link.attrs['href'] for link in response.html.find('a') if 'href' in link.attrs]