From be987a9d107afb9fe547a50eabb40d21d9b0c4d1 Mon Sep 17 00:00:00 2001 From: aaronlyy Date: Mon, 18 Apr 2022 22:32:31 +0200 Subject: [PATCH] removed example from ventus --- ventus/ventus.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ventus/ventus.py b/ventus/ventus.py index 3b54f1e..16c1248 100644 --- a/ventus/ventus.py +++ b/ventus/ventus.py @@ -135,16 +135,4 @@ def search(self, query: Query) -> list: """ html = self._request(query) links = self._parse(html) - return links - -if __name__ == "__main__": - q = Query() - q.add_filter(Filter.INTITLE, "index of /") - q.add_filter(Filter.AND) - q.add_filter(Filter.INTEXT) - q.add_keyword_group(["Backup", "backup", "recovery"]) - q.add_filter(Filter.AND) - q.add_filter(Filter.INTITLE) - q.add_keyword_group(["iphone", "samsung", "huawei"]) - - print(q) \ No newline at end of file + return links \ No newline at end of file