Subversion Repositories SmartDukaan

Rev

Rev 4039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4039 Rev 5291
Line 6... Line 6...
6
from Scrapers.FlipcartScraper import FlipcartScraper
6
from Scrapers.FlipcartScraper import FlipcartScraper
7
from Scrapers.LetsBuyScraper import LetsBuyScraper
7
from Scrapers.LetsBuyScraper import LetsBuyScraper
8
from Scrapers.InfibeamScraper import InfibeamScraper
8
from Scrapers.InfibeamScraper import InfibeamScraper
9
from Scrapers.HS18Scraper import HS18Scraper
9
from Scrapers.HS18Scraper import HS18Scraper
10
from Scrapers.AdexmartScraper import AdexmartScraper
10
from Scrapers.AdexmartScraper import AdexmartScraper
-
 
11
from Scrapers.SnapdealScraper import SnapdealScraper
11
 
12
 
12
def getScraper(source):
13
def getScraper(source):
13
    source = str(source).strip()
14
    source = str(source).strip()
14
    
15
    
15
    if source == 'flipkart':
16
    if source == 'flipkart':
Line 23... Line 24...
23
    
24
    
24
    elif source == 'homeshop18':
25
    elif source == 'homeshop18':
25
        return HS18Scraper()
26
        return HS18Scraper()
26
    
27
    
27
    elif source == 'adexmart':
28
    elif source == 'adexmart':
28
        return AdexmartScraper()
-
 
29
29
        return AdexmartScraper()
-
 
30
    
-
 
31
    elif source == 'snapdeal':
-
 
32
        return SnapdealScraper()
-
 
33
30
34