Skip to content Skip to sidebar Skip to footer

Problems While Trying To Extract Part Of Id

so i tried to gather all of ids from site and 'extract' numbers from them Its looking like that on that site:
Copy

Solution 2:

You can use split method as well.

for x in elements:
       id = x.get_attribute("id")
       a =id.split("_")[1]
       print(a)

Post a Comment for "Problems While Trying To Extract Part Of Id"