Subversion Repositories SmartDukaan

Rev

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

Rev 15484 Rev 15492
Line 178... Line 178...
178
def close_session():
178
def close_session():
179
    if session.is_active:
179
    if session.is_active:
180
        print "session is active. closing it."
180
        print "session is active. closing it."
181
        session.close()
181
        session.close()
182
        
182
        
183
def scrapAmazon(amazonItems,br):
183
def scrapAmazon(amazonItems):
184
    from shop2020.model.v1.catalog.script import AmazonScraper
184
    from shop2020.model.v1.catalog.script import AmazonScraper
185
    from shop2020.model.v1.catalog.impl.DataService import Amazonlisted
185
    from shop2020.model.v1.catalog.impl.DataService import Amazonlisted
186
    print "Inside amazonitems ",amazonItems
186
    print "Inside amazonitems ",amazonItems
187
    print "len amazon items ",len(amazonItems)
187
    print "len amazon items ",len(amazonItems)
188
    time.sleep(5)
188
    time.sleep(5)