| # | 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 | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |