1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63  
Rank
Name
Level
League
Trophies
Donations
Role
#1
11
4438
379

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  for i, row in enumerate(soup.findAll("div",attrs = {"class":"clan__rowContainer"})): user_dict = {} for j,col in enumerate(row.findAll("div",attrs = {"class":"clan__row"})): if j == 0: user_dict["rank"] = col.string.strip().replace("#","") elif j == 1: user_dict["name"] = col.a.string.strip() user_dict["uid"] = col.a.get("href").strip("/profile/") elif j == 2: user_dict["level"] = col.span.string.strip() elif j == 3: user_dict["league"] = col.contents[1].div.get("class")[0].replace("league__","") elif j == 4: user_dict["score"] = col.div.string.strip() elif j == 5: user_dict["donations"] = col.string.strip() elif j == 6: user_dict["role"] = col.string.strip() print(user_dict)