import pywikibot
from pywikibot import pagegenerators

import re

site = pywikibot.Site('en', 'wikipedia')
cat = pywikibot.Category(site,'Category:Integer_sequences')
gen = pagegenerators.CategorizedPageGenerator(cat)

OEIS_list = pywikibot.Page(site, u"List_of_OEIS_sequences")

for page in gen:

OEIS_template = re.search(r'{{(OEIS|Cite OEIS|OEIS el|OEIS link|OEIS2C)\s*\|(A\d{6})',page.text)
if OEIS_template:
if OEIS_list.text.find(OEIS_template.group(2)):
print('Found ' + OEIS_template.group(2) + ' on the page ' + str(page.title()))
if not OEIS_list.text.find(OEIS_template.group(2)):
print('Please update the list with page ' + str(page.title))

Found A000002 on the page List of OEIS sequences
Found A100000 on the page On-Line Encyclopedia of Integer Sequences
Found A000079 on the page Almost perfect number
Found A215491 on the page Amicable numbers
Found A006933 on the page Ban number
Found A011971 on the page Bell number
Found A193472 on the page Bernoulli number
Found A100907 on the page Carol number
Found A006877 on the page Collatz conjecture
Found A073751 on the page Colossally abundant number
Found A203074 on the page Complete sequence
Found A008288 on the page Delannoy number
Found A006862 on the page Euclid number
Found A122045 on the page Euler number
Found A008517 on the page Eulerian number
Found A001969 on the page Evil number
Found A084531 on the page Fractal sequence
Found A001316 on the page Gould's sequence
Found A050205 on the page Greedy algorithm for Egyptian fractions
Found A088912 on the page Hemiperfect number
Found A100827 on the page Highly cototient number
Found A034897 on the page Hyperperfect number
Found A000926 on the page Idoneal number
Found A005520 on the page Integer complexity
Found A099009 on the page Kaprekar's routine
Found A060031 on the page Katydid sequence
Found A000002 on the page Kolakoski sequence
Found A105278 on the page Lah number
Found A214733 on the page Lucas sequence
Found A000695 on the page Moser–de Bruijn sequence
Found A007539 on the page Multiply perfect number
Found A000069 on the page Odious number
Found A000670 on the page Ordered Bell number
Found A077855 on the page Padovan sequence
Found A275612 on the page Perrin number
Found A066352 on the page Pillai sequence
Found A011557 on the page Power of 10
Found A005153 on the page Practical number
Found A100964 on the page Prime number
Found A088831 on the page Quasiperfect number
Found A051037 on the page Regular number
Found A001003 on the page Schröder–Hipparchus number
Found A006036 on the page Semiperfect number
Found A117543 on the page Semiprime
Found A002473 on the page Smooth number
Found A292217 on the page Sociable number
Found A006720 on the page Somos sequence
Found A007913 on the page Square-free integer
Found A019279 on the page Superperfect number
Found A000085 on the page Telephone number (mathematics)
Found A001190 on the page Wedderburn–Etherington number
Found A058883 on the page Wild number