Jump to content
UBot Underground

Remove From Csv File After Round


Recommended Posts

Hy i`am a beginner and have a few problems.

 

I have a CSV File with

 

1. Article 1

2. Article 2

3. Article 3 

 

and so one. 

 

Now i want that if a round starts he use a random article from the CSV File and after the round he deletes the current line with the article from the file. 

 

And a second problem. An example if i on a side like pricegrabber.com I can`t click to a product. I can go to a category and see the products but than i can`t click the see it button to get to the new page 

 

I make a short take: https://www.file-upload.net/download-12827723/Aufnahme_2017_11_22_06_00_36_444.mp4.html

 

What have i to do?

Edited by bubees
Link to post
Share on other sites

For your first question, the easiest way is to get the articles into a list and then do something like this:

loop($list total(%articles)) {
    set(#randomArticle,$rand(1,$list total(%articles)),"Global")
    set(#articlePosition,$subtract(#randomArticle,1),"Global")
    set(#article,$list item(%articles,#articlePosition),"Global")
    remove from list(%articles,#articlePosition)
    wait(0.5)
}

For the second, if you could upload that to Youtube or a video hosting site that would be helpful.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...