Skip to content

Commit

Permalink
Updated the get_domain_hyperlinks function to include handling of tel…
Browse files Browse the repository at this point in the history
…: links in addition to mailto: links, to exclude them from the clean links list.
  • Loading branch information
khapaev committed Apr 7, 2023
1 parent 1deea48 commit ee9b626
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web-crawl-q-and-a/web-qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ def get_domain_hyperlinks(local_domain, url):
else:
if link.startswith("/"):
link = link[1:]
elif link.startswith("#") or link.startswith("mailto:"):
elif (
link.startswith("#")
or link.startswith("mailto:")
or link.startswith("tel:")
):
continue
clean_link = "https://" + local_domain + "/" + link

Expand Down

0 comments on commit ee9b626

Please sign in to comment.