Subversion Repositories SmartDukaan

Rev

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

Rev 20371 Rev 20372
Line 111... Line 111...
111
    rank = 0
111
    rank = 0
112
    bestSellers = []
112
    bestSellers = []
113
    print "Homeshop18 Best Sellers Tablets..."
113
    print "Homeshop18 Best Sellers Tablets..."
114
    for i in range(0,5):
114
    for i in range(0,5):
115
        tabletCategoryUrl = 'http://www.homeshop18.com/tablets/categoryid:8937/search:/sort:Popularity/inStock:%28%22true%22%29/start:'+str(i*24)+'/?lazy=true'
115
        tabletCategoryUrl = 'http://www.homeshop18.com/tablets/categoryid:8937/search:/sort:Popularity/inStock:%28%22true%22%29/start:'+str(i*24)+'/?lazy=true'
116
        data = fetchResponseUsingProxy(tabletCategoryUrl)
116
        data = fetchResponseUsingProxy(tabletCategoryUrl, proxy=False)
117
        soup = BeautifulSoup(data)
117
        soup = BeautifulSoup(data)
118
        tags = soup.findAll("div", {'class':'inside'})
118
        tags = soup.findAll("div", {'class':'inside'})
119
        for tag in tags:
119
        for tag in tags:
120
            if not tag.has_key('id'):
120
            if not tag.has_key('id'):
121
                continue
121
                continue