Subversion Repositories SmartDukaan

Rev

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

Rev 13576 Rev 13582
Line 4... Line 4...
4
@author: amit
4
@author: amit
5
'''
5
'''
6
from pymongo.mongo_client import MongoClient
6
from pymongo.mongo_client import MongoClient
7
import importlib
7
import importlib
8
import mechanize
8
import mechanize
9
sourceMap = {1:"amazon", 2:"flipkart", 3:"snapdeal"}
9
sourceMap = {1:"amazon", 2:"flipkart", 3:"snapdeal", 4:"spice", 5:"homeshop18"}
-
 
10
 
10
 
11
 
11
def getStore(source_id):
12
def getStore(source_id):
12
    #module = sourceMap[source_id]
13
    #module = sourceMap[source_id]
13
    store = Store(source_id)
14
    store = Store(source_id)
14
    module = importlib.import_module("dtr.sources." + sourceMap[source_id])
15
    module = importlib.import_module("dtr.sources." + sourceMap[source_id])