Subversion Repositories SmartDukaan

Rev

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

Rev 3232 Rev 4039
Line 2... Line 2...
2
Created on 25-Aug-2011
2
Created on 25-Aug-2011
3
 
3
 
4
@author: Varun Gupta
4
@author: Varun Gupta
5
'''
5
'''
6
from Scrapers.FlipcartScraper import FlipcartScraper
6
from Scrapers.FlipcartScraper import FlipcartScraper
7
from Scrapers.SaholicScraper import SaholicScraper
7
from Scrapers.LetsBuyScraper import LetsBuyScraper
-
 
8
from Scrapers.InfibeamScraper import InfibeamScraper
-
 
9
from Scrapers.HS18Scraper import HS18Scraper
-
 
10
from Scrapers.AdexmartScraper import AdexmartScraper
8
 
11
 
9
def getScraper(source):
12
def getScraper(source):
-
 
13
    source = str(source).strip()
10
    
14
    
11
    if str(source) == 'flipkart':
15
    if source == 'flipkart':
12
        return FlipcartScraper()
16
        return FlipcartScraper()
13
    
17
    
14
    elif str(source) == 'saholic':
-
 
15
        return SaholicScraper()
-
 
16
18
    elif source == 'letsbuy':
-
 
19
        return LetsBuyScraper()
-
 
20
    
-
 
21
    elif source == 'infibeam':
-
 
22
        return InfibeamScraper()
-
 
23
    
-
 
24
    elif source == 'homeshop18':
-
 
25
        return HS18Scraper()
-
 
26
    
-
 
27
    elif source == 'adexmart':
-
 
28
        return AdexmartScraper()
-
 
29
17
30