Index: /ValBot/Python/check_interwiki_links.py
===================================================================
--- /ValBot/Python/check_interwiki_links.py	(revision 1190)
+++ /ValBot/Python/check_interwiki_links.py	(revision 1191)
@@ -63,13 +63,31 @@
    soup = BeautifulSoup(page_text, 'html.parser')
    found_section = False
-   for span_tag in soup.findAll('span'): # search for span with ID matching the section name
-      span_name = span_tag.get('id', None)
-      if span_name == anchor_name:
+   for the_tag in soup.findAll('span'): # search for span with ID matching the section name
+      tag_name = the_tag.get('id', None)
+      if tag_name == anchor_name:
          found_section = True
          break
    if found_section == False:
-      for span_tag in soup.findAll('div'): # search for div with ID matching the section name
-         span_name = span_tag.get('id', None)
-         if span_name == anchor_name:
+      for the_tag in soup.findAll('div'): # search for div with ID matching the section name
+         tag_name = the_tag.get('id', None)
+         if tag_name == anchor_name:
+            found_section = True
+            break
+   if found_section == False:
+      for the_tag in soup.findAll('h2'): # search for h2 with ID matching the section name
+         tag_name = the_tag.get('id', None)
+         if tag_name == anchor_name:
+            found_section = True
+            break
+   if found_section == False:
+      for the_tag in soup.findAll('h3'): # search for h3 with ID matching the section name
+         tag_name = the_tag.get('id', None)
+         if tag_name == anchor_name:
+            found_section = True
+            break
+   if found_section == False:
+      for the_tag in soup.findAll('h4'): # search for h4 with ID matching the section name
+         tag_name = the_tag.get('id', None)
+         if tag_name == anchor_name:
             found_section = True
             break
