Oct-09-2017, 08:36 AM
(This post was last modified: Oct-09-2017, 08:37 AM by Prince_Bhatia.)
hi sir,
this is what i have tried
this is what i have tried
for x in player_data: for y in x.descendants: if y.name == "div" text = y.text indices_to_delete = [] for i in range(0, len(text), 250): indices_to_delete.append(i) keys = [] for k in indices_to_delete: keys.append(text[k]) new_text = [] for x in text: if not x in keys: new_text.append(x)has no idea is it correct and how to club them together , all the loops? can someone please tell if it is right or wrong?