Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

from dtr.main import getStore
from dtr.main import sourceMap
import traceback



def main():
    for key, val in sourceMap.iteritems():
        try:
            print "Iterating through affiliate for", val
            store = getStore(key)
            if store is not None:
                store.scrapeAffiliate()
        except:
            print "Error"
            traceback.print_exc()
if __name__=='__main__':
    main()