Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def get_web_page_data(url):
|
4 |
-
|
|
|
|
|
5 |
|
6 |
def copy_to_clipboard(text):
|
7 |
import pyperclip
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def get_web_page_data(url):
|
4 |
+
response = requests.get(url)
|
5 |
+
parser = HTMLParser(html=response.text)
|
6 |
+
return parser.html
|
7 |
|
8 |
def copy_to_clipboard(text):
|
9 |
import pyperclip
|