From d7baa1f2321e2ff095f5c87b8bae2a41a2543705 Mon Sep 17 00:00:00 2001
From: Daoud Clarke <daoud.clarke@gmail.com>
Date: Sun, 14 Mar 2021 12:53:23 +0000
Subject: [PATCH] Add timeout

---
 crawl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crawl.py b/crawl.py
index 31c99e5..609deb6 100644
--- a/crawl.py
+++ b/crawl.py
@@ -37,7 +37,7 @@ def crawl():
 
 
 def fetch(url):
-    page_data = requests.get(url)
+    page_data = requests.get(url, timeout=10)
     return page_data.text