Subversion Repositories SmartDukaan

Rev

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

Rev 18995 Rev 18996
Line 1592... Line 1592...
1592
            connection = urllib2.urlopen(req, timeout=10)
1592
            connection = urllib2.urlopen(req, timeout=10)
1593
        except:
1593
        except:
1594
            tinInfo = {"isError":True,
1594
            tinInfo = {"isError":True,
1595
                    "errorMsg": "Some problem occurred. Try again after some time"
1595
                    "errorMsg": "Some problem occurred. Try again after some time"
1596
            }
1596
            }
-
 
1597
            return tinInfo
1597
        pageHtml = connection.read()
1598
        pageHtml = connection.read()
1598
        connection.close()        
1599
        connection.close()        
1599
        doc = pq(pageHtml)
1600
        doc = pq(pageHtml)
1600
        index=-1
1601
        index=-1
1601
        for ele in pq(doc.find('table')[2])('tr td:nth-child(2)'):
1602
        for ele in pq(doc.find('table')[2])('tr td:nth-child(2)'):