def __getattr__(self, name):
        """patch for crawl(url, callback=self.index_page) API"""
        if self.interactive:
            return name
        raise AttributeError(name)
patch for crawl(url, callback=self.index_page) API
pyspider/scheduler/scheduler.py