Exemplo n.º 1
0
             
            method = cells[3].find(text=True)
            res['method'] = [method]
            
            event = cells[4].find(text=True)
            res['event'] = [event]
            
            date= cells[5].find(text=True)
            res['date'] = [date]
            
            round_end = cells[6].find(text=True)
            res['round_end'] = [round_end]
            
            time = cells[7].find(text=True)
            res['time']= [time]
            
            location = cells[8].find(text=True)
            res['location'] = [location]
            
            notes = cells[9].find(text=True)
            res['notes'] = [notes]
            
        fighter_record = fighter_record.append(pd.DataFrame(res))

fighter_record = fighter_record[fighter_record.date != '']


attrb['record'] = fighter_record

new_fighter=fighter(attrb)
Exemplo n.º 2
0
                
                date= cells[5].find(text=True)
                res['date'] = [date]
                
                round_end = cells[6].find(text=True)
                res['round_end'] = [round_end]
                
                time = cells[7].find(text=True)
                res['time']= [time]
                
                location = cells[8].find(text=True)
                res['location'] = [location]
                
                notes = cells[9].find(text=True)
                res['notes'] = [notes]
                
            fighter_record = fighter_record.append(pd.DataFrame(res))
    
    fighter_record = fighter_record[fighter_record.date != '']
    
    
    attrb['record'] = fighter_record
    
    fighter=fighter(attrb)

    fighters.append(fighter)