I'm trying some web-scraping which requires to loop through some elements having attribute in a string format. But the string is a numeric value which increases throughout the element.
data-id="1"
Is there a way to increase the value of data-id to "2" to "3" so on while it remains in string format?