def loadHistory(self):
        """ Loads the shop sale history 
           
        Raises
           parseException
        """
        pg = self.usr.getPage("http://www.neopets.com/market.phtml?type=sales")\
        
        try:
            rows = pg.find("b", text = "Date").parent.parent.parent.find_all("tr")
            
            # First and last row do not contain entries
            rows.pop(0)
            rows.pop(-1)
            
            self.history = []
            for row in rows:
                parts = row.find_all("td")
                dets = {}
                
                dets['date'] = parts[0].text
                dets['item'] = parts[1].text
                dets['buyer'] = parts[2].text
                dets['price'] = parts[3].text
                
                self.history.append(dets)
                
            # Reverse the list to put it in order by date
            self.history.reverse()
        except Exception:
            logging.getLogger("neolib.shop").exception("Could not parse sales history.", {'pg': pg})
            raise parseException
def loadHistory ( self ) : pg = self . usr . getPage ( "http://www.neopets.com/market.phtml?type=sales" ) try : rows = pg . find ( "b" , text = "Date" ) . parent . parent . parent . find_all ( "tr" ) rows . pop ( 0 ) rows . pop ( - 1 ) self . history = [ ] for row in rows : parts = row . find_all ( "td" ) dets = { } dets [ 'date' ] = parts [ 0 ] . text dets [ 'item' ] = parts [ 1 ] . text dets [ 'buyer' ] = parts [ 2 ] . text dets [ 'price' ] = parts [ 3 ] . text self . history . append ( dets ) self . history . reverse ( ) except Exception : logging . getLogger ( "neolib.shop" ) . exception ( "Could not parse sales history." , { 'pg' : pg } ) raise parseException
Loads the shop sale history 
           
        Raises
           parseException