Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -337,7 +337,7 @@ async def get_google_news(queries):
|
|
337 |
# Function to extract links starting with 'url ='
|
338 |
async def extract_links_bing(text):
|
339 |
# Regular expression pattern to match links starting with 'url ='
|
340 |
-
pattern = r"url\s*=\s*\"(https?://[^\"]+)\"
|
341 |
# Find all matches using re.findall
|
342 |
links = re.findall(pattern, text)
|
343 |
return links
|
|
|
337 |
# Function to extract links starting with 'url ='
|
338 |
async def extract_links_bing(text):
|
339 |
# Regular expression pattern to match links starting with 'url ='
|
340 |
+
pattern = r"url\s*=\s*\"(https?://[^\"]+)\"
|
341 |
# Find all matches using re.findall
|
342 |
links = re.findall(pattern, text)
|
343 |
return links
|