Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13614 amit.gupta 1
from dtr.main import getStore
2
from dtr.main import sourceMap
3
import traceback
4
 
5
 
6
 
7
def main():
8
    for key, val in sourceMap.iteritems():
9
        try:
10
            print "Iterating through affiliate for", val
11
            store = getStore(key)
12
            if store is not None:
13
                store.scrapeAffiliate()
14
        except:
15
            print "Error"
16
            traceback.print_exc()
17
if __name__=='__main__':
18
    main()