Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
from bs4 import BeautifulSoup
|
4 |
-
|
5 |
|
6 |
def parse_links(ort):
|
7 |
try:
|
8 |
# Konstruiere die vollständige URL
|
9 |
-
initial_url =
|
10 |
|
11 |
# Senden der Anfrage an die initiale URL
|
12 |
response = requests.get(initial_url)
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
from bs4 import BeautifulSoup
|
4 |
+
from urllib.parse import urljoin
|
5 |
|
6 |
def parse_links(ort):
|
7 |
try:
|
8 |
# Konstruiere die vollständige URL
|
9 |
+
initial_url = "http://specialist-it.de:3000?q=sv+garitz"
|
10 |
|
11 |
# Senden der Anfrage an die initiale URL
|
12 |
response = requests.get(initial_url)
|