Subversion Repositories SmartDukaan

Rev

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

Rev 6022 Rev 6024
Line 31... Line 31...
31
        phones = []
31
        phones = []
32
        for div in self.soup.findAll('div', {'class': 'prod_main_div'}):
32
        for div in self.soup.findAll('div', {'class': 'prod_main_div'}):
33
            try:
33
            try:
34
                productUrlContainer = div.find('div', {'class': 'product_name search-product-block'})
34
                productUrlContainer = div.find('div', {'class': 'product_name search-product-block'})
35
                name = productUrlContainer.contents[1].string
35
                name = productUrlContainer.contents[1].string
36
                product_url = "www.tradus.com" +productUrlContainer.contents[1]['href']
36
                product_url = "http://www.tradus.com" +productUrlContainer.contents[1]['href']
37
                price = div.find('span', {'class':'numDiv_left'}).string.strip()
37
                price = div.find('span', {'class':'numDiv_left'}).string.strip()
38
                price = removePriceFormatting(price)
38
                price = removePriceFormatting(price)
39
                in_stock = 1
39
                in_stock = 1
40
                
40
                
41
                try:
41
                try: