Subversion Repositories SmartDukaan

Rev

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

Rev 4198 Rev 4199
Line 96... Line 96...
96
        filtered_cluster[source] = getItemsWithTopScore(products)
96
        filtered_cluster[source] = getItemsWithTopScore(products)
97
    
97
    
98
    return filtered_cluster
98
    return filtered_cluster
99
 
99
 
100
def removePriceFormatting(price_string):
100
def removePriceFormatting(price_string):
101
    return price_string.replace('Rs.', '').replace('Rs', '').replace(',', '').replace(' ', '').strip().split('.')[0]
101
    return price_string.strip().replace('Rs.', '').replace('Rs', '').replace(',', '').replace(' ', '').replace(' ', '').split('.')[0]
102
    
102
    
103
def getSearchURL(source, name):
103
def getSearchURL(source, name):
104
        
104
        
105
        search_urls = {
105
        search_urls = {
106
            'flipkart': 'http://www.flipkart.com/search-mobiles?query=$$&from=all&searchGroup=mobiles',
106
            'flipkart': 'http://www.flipkart.com/search-mobiles?query=$$&from=all&searchGroup=mobiles',