Subversion Repositories SmartDukaan

Rev

Rev 3232 | Rev 5291 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 25-Aug-2011

@author: Varun Gupta
'''
from Scrapers.FlipcartScraper import FlipcartScraper
from Scrapers.LetsBuyScraper import LetsBuyScraper
from Scrapers.InfibeamScraper import InfibeamScraper
from Scrapers.HS18Scraper import HS18Scraper
from Scrapers.AdexmartScraper import AdexmartScraper

def getScraper(source):
    source = str(source).strip()
    
    if source == 'flipkart':
        return FlipcartScraper()
    
    elif source == 'letsbuy':
        return LetsBuyScraper()
    
    elif source == 'infibeam':
        return InfibeamScraper()
    
    elif source == 'homeshop18':
        return HS18Scraper()
    
    elif source == 'adexmart':
        return AdexmartScraper()