def __init__(self, target_patterns):
        self.url_base = 'http://pastie.org'
        self.url_archive = '/pastes'
        self.paste_tag = lambda tag: tag.name == 'p' and tag.a and self.url_base in tag.a['href']
        super().__init__(self.url_base, self.url_archive, self.paste_tag, target_patterns,
                         PastiePaste)
dataset/ETHPy150Open ThaWeatherman/scrapers/pastes/paste/paste.py/Pastie.__init__/original