Skip to content

SpinFile

I am looking at using the '%spinfile' command, along with 'keyword' to slect either a random line from a names file, or a random line, from a random file.

So my question is ... will both of the following work ok when used in the Keyword area of GSA?

To pull a random entry from one of the many .txt files in the sub-directory \1000

%spinfile-C:\Users\Administrator\Dropbox\GSA\Keyword Lists\1000\%

and ....

To pull a random entry from a specific .txt file:

%spinfile-C:\Users\Administrator\Dropbox\GSA\Keyword Lists\scraping_keywords.txt%


Will these work ok?

Comments

  • edited May 2014
    Yes, they will but you are using the wrong command - it's quite fun actually to see the power of this AND if makes your SER run a bit faster instead of loading everything into memory.

    Use the %spinfolder% macro, not the %spinfile%

    like this:
    %spinfolder-C:\Users\myusername\Dropbox\ser\keywordshuffle%

    the folder keywordshuffle on my machine contains about 2k files or so

    inside the files the keywords need to be in spintax, so {kw1|kw2|kw3}
  • Thanks @Ferryman

    My .txt files are not in Spintax tho, which is why I had been told to use the Spinfile.

    Will spinfile work with non-spintax files?
  • edited May 2014
    spinfile will pull one random line from one file only afaik no need for spintax. Spinfolder will pull everything from a random file in one folder. If you don't use spintax spinfolder will pull the whole file.
Sign In or Register to comment.