Usage examples of the Splitlist command
Written by: webDOMinator 1 year and 5 months ago
This command is quite powerful to create new lists on the fly in script. It has a couple options that you will also find in the user interface for "split" in the list manager.
For the following examples, imagine that I have a list called "blogURLs". Wherever you see "blogURLs", just imagine that you are using your own list name.
Example 1. Splitting a list into 2
Code
//will output 2 lists. blogURLs1 and blogURLs2
splitlistQuick Reference for "splitlist"
Click on command to see examples & comments
Information Lists
Usage: splitlistQuick Reference for "list"
Click on command to see examples & comments
Information Lists
Usage: list:handle[:optionsfile;gatherfile]
Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:handle[;rangelow-rangehigh]:numlists[:rename]
Description: Splits the list specified by handle to a new set of lists. Lists will open in the list manager. The main required arguments are the handle and the numlists which specifies the number of lists to split into. If only a range of items in the list need to be used in the split, rangelow and rangehigh can be used (seperated by a "-") to specify the limits of what items will be used for the split (i.e: 101-200 would pull just entries 101 through 200 for the split). The rename argument can be set to specify a new name for the lists. Lists will be named "name01, name02, etc.":blogURLs:2
Example 2. Splitting a list into 10
Code
//will output 10 lists, blogURLs01, etc.
splitlistQuick Reference for "splitlist"
Click on command to see examples & comments
Information Lists
Usage: splitlistQuick Reference for "list"
Click on command to see examples & comments
Information Lists
Usage: list:handle[:optionsfile;gatherfile]
Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:handle[;rangelow-rangehigh]:numlists[:rename]
Description: Splits the list specified by handle to a new set of lists. Lists will open in the list manager. The main required arguments are the handle and the numlists which specifies the number of lists to split into. If only a range of items in the list need to be used in the split, rangelow and rangehigh can be used (seperated by a "-") to specify the limits of what items will be used for the split (i.e: 101-200 would pull just entries 101 through 200 for the split). The rename argument can be set to specify a new name for the lists. Lists will be named "name01, name02, etc.":blogURLs:10
Example 3. Splitting just part of a list into 2
Code
//will output 2 lists but the first split list will include items 201-300 from the original list, and the second split list will include items 301-400 from the original.
splitlistQuick Reference for "splitlist"
Click on command to see examples & comments
Information Lists
Usage: splitlistQuick Reference for "list"
Click on command to see examples & comments
Information Lists
Usage: list:handle[:optionsfile;gatherfile]
Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:handle[;rangelow-rangehigh]:numlists[:rename]
Description: Splits the list specified by handle to a new set of lists. Lists will open in the list manager. The main required arguments are the handle and the numlists which specifies the number of lists to split into. If only a range of items in the list need to be used in the split, rangelow and rangehigh can be used (seperated by a "-") to specify the limits of what items will be used for the split (i.e: 101-200 would pull just entries 101 through 200 for the split). The rename argument can be set to specify a new name for the lists. Lists will be named "name01, name02, etc.":blogURLs:201-400:2
Example 4. Using splitlist as a way to just export a chunk of a list instead of splitting
Code
//just use 1 as the numlists argument
splitlistQuick Reference for "splitlist"
Click on command to see examples & comments
Information Lists
Usage: splitlistQuick Reference for "list"
Click on command to see examples & comments
Information Lists
Usage: list:handle[:optionsfile;gatherfile]
Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:handle[;rangelow-rangehigh]:numlists[:rename]
Description: Splits the list specified by handle to a new set of lists. Lists will open in the list manager. The main required arguments are the handle and the numlists which specifies the number of lists to split into. If only a range of items in the list need to be used in the split, rangelow and rangehigh can be used (seperated by a "-") to specify the limits of what items will be used for the split (i.e: 101-200 would pull just entries 101 through 200 for the split). The rename argument can be set to specify a new name for the lists. Lists will be named "name01, name02, etc.":blogURLs:101-200:1
Example 5. Splitting a list into a series of lists named newblogs
Code
splitlistQuick Reference for "splitlist"
Click on command to see examples & comments
Information Lists
Usage: splitlistQuick Reference for "list"
Click on command to see examples & comments
Information Lists
Usage: list:handle[:optionsfile;gatherfile]
Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:handle[;rangelow-rangehigh]:numlists[:rename]
Description: Splits the list specified by handle to a new set of lists. Lists will open in the list manager. The main required arguments are the handle and the numlists which specifies the number of lists to split into. If only a range of items in the list need to be used in the split, rangelow and rangehigh can be used (seperated by a "-") to specify the limits of what items will be used for the split (i.e: 101-200 would pull just entries 101 through 200 for the split). The rename argument can be set to specify a new name for the lists. Lists will be named "name01, name02, etc.":blogURLs:5:newblogs