I am trying to concatenate url and integer base on the iteration of the loop. But I am getting error: TypeError: not all arguments converted during string formatting
for i in range(0,20):
convertedI = str(i)
address = 'http://www.google.com/search?q=%s&num=100&hl=en&start='.join(convertedI) % (urllib.quote_plus(query))
I also tried to urllib.urlencode function but ended up getting the same error.
I guess I should have mentioned in addition to query which is a string that I pass it in in my main I want assign current iteration value to the start parameter in the url > &start=1
so first iteration I would like to have my url as
http://www.google.com/search?q=%s&num=100&hl=en&start=1' % (urllib.quote_plus(query))