Rev 5291 | Blame | Compare with Previous | Last modification | View Log | RSS feed
'''Created on 25-Aug-2011@author: Varun Gupta'''from Scrapers.FlipcartScraper import FlipcartScraperfrom Scrapers.LetsBuyScraper import LetsBuyScraperfrom Scrapers.InfibeamScraper import InfibeamScraperfrom Scrapers.HS18Scraper import HS18Scraperfrom Scrapers.AdexmartScraper import AdexmartScraperfrom Scrapers.SnapdealScraper import SnapdealScraperfrom Scrapers.TradusScraper import TradusScraperfrom Scrapers.SulekhaScraper import SulekhaScraperdef 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()elif source == 'snapdeal':return SnapdealScraper()elif source == 'tradus':return TradusScraper()elif source == 'sulekha':return SulekhaScraper()