

def get_videos(self):
    self.candidates = self.parser.getElementsByTags(attr.top_node, VIDEOS_TAGS)
    for candidate in self.candidates:
        tag = self.parser.getTag(candidate)
        attr = ('get_%s_tag' % tag)
        if hasattr(self, attr):
            movie = getattr(self, attr)(candidate)
            if ((movie is not None) and (movie.provider is not None)):
                self.movies.append(movie)
    return list(self.movies)

dataset/ETHPy150Open codelucas/newspaper/newspaper/videos/extractors.py VideoExtractor.get_videos/VarMisuse@20/25 `self`->`attr`