I have a list called all_urls. I am trying to infinitely iterate through the list. I have an index i which I want to start from. For example :
www.google.com
www.facebook.com
www.linkednin.com
www.yahoo.com
www.microsoft.com
I want to start iteration from linkedin then go in an infinite loop.
I have tried looking at this link :
How can I infinitely loop an iterator in Python, via a generator or other?
but this link doesn't specify how I can start from some middle point.
I have tried
for url in itertools.cycle(all_urls[i:]):
print "Process URL : " + url
but it doesnt work.