Chris4K commited on
Commit
9b1a4e6
·
verified ·
1 Parent(s): c97201a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -33,6 +33,9 @@ def get_all_links_from_domain(domain_url):
33
 
34
  # Function to crawl links from a page within the same domain
35
  def get_links_from_page(url, visited_urls, all_links, base_domain):
 
 
 
36
  if url in visited_urls:
37
  return
38
 
 
33
 
34
  # Function to crawl links from a page within the same domain
35
  def get_links_from_page(url, visited_urls, all_links, base_domain):
36
+ if not url.startswith(base_domain):
37
+ return
38
+
39
  if url in visited_urls:
40
  return
41