Explicitly declare parser.
This commit is contained in:
parent
9864ad2617
commit
b3a74584e9
4
main.py
4
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:
|
||||
|
|
Loading…
Reference in New Issue