ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/ValBot/Python/check_intrawiki_section_links.py
(Generate patch)

Comparing ValBot/Python/check_intrawiki_section_links.py (file contents):
Revision 1186 by iritscen, Mon Nov 20 02:18:07 2023 UTC vs.
Revision 1188 by iritscen, Tue Jan 23 03:53:05 2024 UTC

# Line 64 | Line 64 | def find_section(page_text, page_name, p
64     target_page_name_human = target_page_name.replace('_', ' ')
65     if debug: pywikibot.stdout('         Searching for section link {} on page.'.format(anchor_name))
66  
67   # Convert slash character to the dot-notation hex encoding that MediaWiki uses
68   anchor_name = anchor_name.replace('/', '.2F')
69
67     # Read linked page to see if it really has this anchor link
68     soup = BeautifulSoup(page_text, 'html.parser')
69     found_section = False

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)