diff --git a/crawler.py b/crawler.py index 5c8f8b6..acea635 100644 --- a/crawler.py +++ b/crawler.py @@ -959,6 +959,8 @@ def downloaddriver(): ddl = ret.find_all('a') for k in ddl: key = k.attrs.keys() + if 'href' not in key: + continue href = k.attrs['href'] if 'href' in key and "win64" in href and ".zip" in href: url = href