I'm trying to create a search by constructing the resulting url(s). In order to do so I have a base url string
$url = blah.com/sassafras%
this would be the first page, and the subsequent search pages would be...
blah.com/sassafras%&ct=11
blah.com/sassafras%&ct=21
blah.com/sassafras%&ct=31
...
How can I creat a line of code that adds a variable with increasing values into the url for 11, 21, 31... and place them in a list
How would I go about stopping the list creation once there are no longer any corresponding pages (i.e. there are no more result pages)
$url = blah.com/sassafras%
this would be the first page, and the subsequent search pages would be...
blah.com/sassafras%&ct=11
blah.com/sassafras%&ct=21
blah.com/sassafras%&ct=31
...
How can I creat a line of code that adds a variable with increasing values into the url for 11, 21, 31... and place them in a list
How would I go about stopping the list creation once there are no longer any corresponding pages (i.e. there are no more result pages)