Skip to content

Commit fdd0882

Browse files
authored
Update web-crawler.py
1 parent 9959dd2 commit fdd0882

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/web-crawler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def hostname(url):
3333
for from_url in result:
3434
name = hostname(from_url)
3535
for to_url in htmlParser.getUrls(from_url):
36-
if to_url not in lookup and \
37-
name == hostname(to_url):
36+
if to_url not in lookup and name == hostname(to_url):
3837
result.append(to_url)
3938
lookup.add(to_url)
4039
return result

0 commit comments

Comments
 (0)