示例#1
0
def scraper():
    """Setup a test Scraper that handles FakeSource sources."""
    scraper = Scraper()
    scraper.source_types['fake'] = FakeSource
    return scraper
示例#2
0
def scraper():
    """Setup a test Scraper that handles FakeSource sources."""
    scraper = Scraper()
    scraper.source_types["fake"] = FakeSource
    return scraper
示例#3
0
 def make_scraper(self, **options):
     """Create a Scraper instance for management commands."""
     return Scraper(**options)