diff --git a/main.py b/main.py index a538683..f838b01 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,9 @@ if __name__ == '__main__': h = httplib2.Http('.cache') response, content = h.request(args.site) - s = BeautifulSoup(content) + + s = BeautifulSoup(content,features='html.parser') + """find only file names""" links = s.find_all(href=re.compile(args.filter)) if not links or links == 0: