How should i write a script in Openbullet 2 , for seriel wise numbers

i was scraping a site , where i was scraping ids , like 59031,23342 etc

next part was to navigate to next Ulr like xyz.com/worker/{IDs}

so i how should i rotate the ids in seriel wise in Ob2 ? i am not much aware of programing implementaion when its come to Ob2.