Subversion Repositories SmartDukaan

Rev

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

Rev 14338 Rev 14339
Line 236... Line 236...
236
                    productTitle = lineDet.find("a",{"class":"product-title"}).text
236
                    productTitle = lineDet.find("a",{"class":"product-title"}).text
237
                    productUrl =  str(lineDet.find("a")['href'])
237
                    productUrl =  str(lineDet.find("a")['href'])
238
    
238
    
239
                    start='pid='
239
                    start='pid='
240
                    s=str(lineDet.find("a")['href'])
240
                    s=str(lineDet.find("a")['href'])
241
                    productCode = re.findall(re.escape(start)+"(.*)",s)[0].trim()
241
                    productCode = re.findall(re.escape(start)+"(.*)",s)[0].strip()
242
                    mname = lineDet.findAll("span")
242
                    mname = lineDet.findAll("span")
243
                    k=0
243
                    k=0
244
                    while k<len(mname):
244
                    while k<len(mname):
245
                        if "note" in str(mname[k]):
245
                        if "note" in str(mname[k]):
246
                            if "Color:" in str(mname[k]):
246
                            if "Color:" in str(mname[k]):