Skip to content

A Smart, Automatic, Fast and Lightweight Web Scraper for Python

Update utils.py

Alireza Mikaec1be6aeb626
diff --git a/autoscraper/utils.py b/autoscraper/utils.py
index f3bde54..6f24530 100644
--- a/autoscraper/utils.py
+++ b/autoscraper/utils.py
@@ -1,10 +1,10 @@
-def unique(lst):
- unique_lst = []
- for item in lst:
- if item not in unique_lst:
- unique_lst.append(item)
+def unique(item_list):
+ unique_list = []
+ for item in item_list:
+ if item not in unique_list:
+ unique_list.append(item)
+ return unique_list
- return unique_lst
def forall(fn, lst):
for item in lst: