Spaces:
Runtime error
Runtime error
Canstralian
commited on
Commit
•
1c585ef
1
Parent(s):
5b40103
Update app.py
Browse files
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 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
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]
|