Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def process_youtube_video(url, languages=['en', 'ar']):
|
|
111 |
|
112 |
def read_web_page(url):
|
113 |
result = requests.get(url)
|
114 |
-
if result.status_code <
|
115 |
src = result.text
|
116 |
soup = BeautifulSoup(src, 'html.parser')
|
117 |
|
|
|
111 |
|
112 |
def read_web_page(url):
|
113 |
result = requests.get(url)
|
114 |
+
if result.status_code < 400:
|
115 |
src = result.text
|
116 |
soup = BeautifulSoup(src, 'html.parser')
|
117 |
|