Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def is_valid_url(url):
|
|
| 71 |
|
| 72 |
def scrape_with_bs4(url, session):
|
| 73 |
try:
|
| 74 |
-
response = session.get(url, timeout=
|
| 75 |
response.raise_for_status()
|
| 76 |
soup = BeautifulSoup(response.content, 'html.parser')
|
| 77 |
|
|
|
|
| 71 |
|
| 72 |
def scrape_with_bs4(url, session):
|
| 73 |
try:
|
| 74 |
+
response = session.get(url, timeout=5)
|
| 75 |
response.raise_for_status()
|
| 76 |
soup = BeautifulSoup(response.content, 'html.parser')
|
| 77 |
|