Shreyas094 commited on
Commit
6400d84
1 Parent(s): 3c683fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=10)
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